Skip to content

Commit

Permalink
Run build with relative base path
Browse files Browse the repository at this point in the history
  • Loading branch information
kwrush committed Oct 27, 2023
1 parent 398a158 commit 7682595
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="shortcut icon" type="image/svg" href="/assets/favicon.ico" />
<link
rel="apple-touch-icon"
href="/asssets/apple-touch-icon.png"
href="./asssets/apple-touch-icon.png"
sizes="180x180"
/>
<meta name="theme-color" content="#ffffff" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default defineConfig(({ mode }) => {
}

return {
base: isProd ? '/react-2048/' : '/',
base: './',
server: {
port: 3000,
},
Expand Down

0 comments on commit 7682595

Please sign in to comment.