fix: harden auth flows and align api contracts
This commit is contained in:
@@ -9,8 +9,25 @@ const apiProxyTarget = process.env.VITE_API_PROXY_TARGET || 'http://127.0.0.1:80
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
chunkSizeWarningLimit: 600,
|
||||
rollupOptions: {
|
||||
input: 'index.html',
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (id.includes('node_modules')) {
|
||||
if (id.includes('react-router-dom') || id.includes('/react/') || id.includes('/react-dom/')) {
|
||||
return 'react-vendor'
|
||||
}
|
||||
if (id.includes('/antd/') || id.includes('@ant-design/icons')) {
|
||||
return 'antd-vendor'
|
||||
}
|
||||
if (id.includes('/dayjs/')) {
|
||||
return 'dayjs-vendor'
|
||||
}
|
||||
}
|
||||
return undefined
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
|
||||
Reference in New Issue
Block a user