Skip to content

Commit

Permalink
trying to fix gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
yhattav committed Nov 17, 2024
1 parent 0407e76 commit 05d1453
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://yhattav.github.io/react-gravity",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint .",
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"deploy": "gh-pages -d dist"
},
"dependencies": {
"@ant-design/icons": "^5.3.0",
Expand Down Expand Up @@ -47,7 +46,6 @@
"typescript-eslint": "^8.11.0",
"vite": "^5.0.0"
},
"homepage": "https://yhattav.github.io/react-gravity",
"eslintConfig": {
"extends": [
"plugin:storybook/recommended"
Expand Down
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import react from "@vitejs/plugin-react";

// https://vite.dev/config/
export default defineConfig({
base: "/react-gravity/",
base: process.env.NODE_ENV === "production" ? "/react-gravity/" : "/",
plugins: [react()],
build: {
outDir: "dist",
assetsDir: "assets",
sourcemap: true,
},
});

0 comments on commit 05d1453

Please sign in to comment.