import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vite.dev/config/ export default defineConfig(({ command, mode }) => ({ plugins: [ vue(), ], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) }, }, base: command === 'build' ? '/auth/' : '/', server: { port: 4403, proxy: { '/auth/': { target: 'http://localhost:4401', ws: true, changeOrigin: false } } }, build: { outDir: '../passkey/frontend-build', emptyOutDir: true, assetsDir: 'assets' } }))