Nxing/Caddy forward_auth support. Various fixes to bugs created in earlier edits. Vite server needs different base in dev mode, fixed.

This commit is contained in:
2025-07-14 04:54:53 +00:00
parent e7192e078e
commit 286a5180a4
6 changed files with 42 additions and 26 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
export default defineConfig(({ command, mode }) => ({
plugins: [
vue(),
],
@@ -13,7 +13,7 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
base: '/auth/',
base: command == 'build' ? '/auth/' : '/',
server: {
port: 3000,
proxy: {
@@ -29,4 +29,4 @@ export default defineConfig({
emptyOutDir: true,
assetsDir: 'assets'
}
})
}))