Skip to content

Commit ac03ea7

Browse files
committed
refactor(config): hardcode base path for GitHub Pages deployment
Simplify Vite configuration by hardcoding base path to '/involvex/' instead of dynamically determining it based on environment variables. This removes the conditional logic for GitHub Pages detection and provides a more straightforward deployment configuration.
1 parent 071c19b commit ac03ea7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

vite.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ import Inspect from 'vite-plugin-inspect'
88

99
const dev = 'dev'
1010

11-
export default defineConfig(({ command: _command, mode }) => {
12-
// Determine base path for GitHub Pages
13-
const isProduction = mode === 'production'
14-
const isGitHubPages = isProduction && process.env.GITHUB_ACTIONS === 'true'
15-
11+
export default defineConfig(({ command: _command }) => {
12+
// // Determine base path for GitHub Pages
13+
// const isProduction = mode === 'production'
14+
// const isGitHubPages = isProduction && process.env.GITHUB_ACTIONS === 'true'
15+
1616
// For GitHub Pages, use repository name as base path
17-
const base = isGitHubPages ? '/involvex/' : '/'
18-
17+
// const base = isGitHubPages ? '/involvex/' : '/'
18+
1919
return {
20-
base,
20+
base: '/involvex/',
2121
server: {
2222
port: 8098,
2323
host: '0.0.0.0',
@@ -48,4 +48,4 @@ export default defineConfig(({ command: _command, mode }) => {
4848
},
4949
},
5050
}
51-
})
51+
})

0 commit comments

Comments
 (0)