chore(web): 🔧 Update Vite build configuration for performance and plugin compatibility
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
d567559e1e
commit
072d148206
1 changed files with 6 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ export default defineConfig({
|
|||
'@emotion/is-prop-valid',
|
||||
'shallowequal',
|
||||
'stylis',
|
||||
'cookie',
|
||||
],
|
||||
},
|
||||
server: {
|
||||
|
|
@ -51,6 +52,11 @@ export default defineConfig({
|
|||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
'/ai-api': {
|
||||
target: 'http://localhost:3790',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/ai-api/, ''),
|
||||
},
|
||||
'/socket.io': {
|
||||
target: 'http://localhost:3850',
|
||||
changeOrigin: true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue