We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 145a767 commit febded0Copy full SHA for febded0
1 file changed
web/frontend/vite.config.ts
@@ -3,9 +3,12 @@ import { fileURLToPath, URL } from 'node:url'
3
import vue from '@vitejs/plugin-vue'
4
import { defineConfig } from 'vite'
5
6
+const repositoryName = process.env.GITHUB_REPOSITORY?.split('/')[1]
7
+const defaultBasePath = repositoryName ? `/${repositoryName}/` : '/'
8
+
9
// https://vite.dev/config/
10
export default defineConfig({
- base: process.env.VITE_BASE_PATH || '/codingsnake/',
11
+ base: process.env.VITE_BASE_PATH || defaultBasePath,
12
plugins: [vue()],
13
resolve: {
14
alias: {
0 commit comments