diff --git a/index.html b/index.html index 98da4cd..48c150d 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ diff --git a/package.json b/package.json index aa422a0..60f9753 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "eslint . --ext .js,.ts,.tsx --max-warnings 0", "format": "prettier --write .", "tsc": "tsc -p tsconfig.json --noEmit", - "deploy": "npm run build && gh-pages -d dist/react-2048", + "deploy": "npm run build && gh-pages -d dist", "prepare": "husky install" }, "keywords": [ diff --git a/vite.config.ts b/vite.config.ts index 49c2437..05c6086 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,7 +38,7 @@ export default defineConfig(({ mode }) => { } return { - base: isProd ? '/react-2048/' : '/', + base: './', server: { port: 3000, },