Move the whole app under /auth/, fix static build.
This commit is contained in:
@@ -2,19 +2,18 @@ import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import vueDevTools from 'vite-plugin-vue-devtools'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
vueDevTools(),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
},
|
||||
},
|
||||
base: '/auth/',
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
@@ -26,7 +25,7 @@ export default defineConfig({
|
||||
}
|
||||
},
|
||||
build: {
|
||||
outDir: '../static/dist',
|
||||
outDir: '../passkeyauth/frontend-static',
|
||||
emptyOutDir: true,
|
||||
assetsDir: 'assets'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user