1
0
This commit is contained in:
2025-06-03 05:00:51 +09:00
parent 6cd8014f80
commit ef907660cc
43 changed files with 5255 additions and 194 deletions

View File

@ -3,13 +3,29 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
build: {
// Keep console.log in production for debugging
minify: 'esbuild',
},
esbuild: {
drop: [], // Don't drop console.log
},
server: {
port: 3000,
port: 5173,
host: '127.0.0.1',
allowedHosts: ['localhost', '127.0.0.1', 'xxxcard.syui.ai'],
proxy: {
'/api': {
target: 'http://localhost:8000',
target: 'http://127.0.0.1:8000',
changeOrigin: true,
secure: false,
}
},
// Handle OAuth callback routing
historyApiFallback: {
rewrites: [
{ from: /^\/oauth\/callback/, to: '/index.html' }
]
}
}
})