Skip to content

Commit 6fb66e7

Browse files
committed
Fix homepage URL in package.json and update Vite base path for deployment
1 parent a703b61 commit 6fb66e7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
"private": true,
44
"version": "0.0.0",
55
"type": "module",
6-
"homepage": "https://joacohbc.github.io/study-builder",
6+
"homepage": "https://joacohbc.github.io/study-builder/",
77
"scripts": {
88
"dev": "vite",
99
"build": "vite build",
1010
"lint": "eslint .",
1111
"preview": "vite preview",
12-
"deploy": "npm run build && gh-pages -d dist"
12+
"predeploy": "npm run build",
13+
"deploy": "gh-pages -d dist"
1314
},
1415
"dependencies": {
1516
"@tailwindcss/vite": "^4.1.4",

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import tailwindcss from '@tailwindcss/vite'
55
// https://vite.dev/config/
66
export default defineConfig({
77
plugins: [react(), tailwindcss()],
8-
base: 'https://joacohbc.github.io/study-builder'
8+
base: '/study-builder'
99
})

0 commit comments

Comments
 (0)