Major Refactor
This commit is contained in:
@@ -1,13 +1,29 @@
|
||||
// vite.config.ts
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: {},
|
||||
build: {
|
||||
sourcemap: true,
|
||||
chunkSizeWarningLimit: 1600,
|
||||
assetsInlineLimit: 2048, // 2kb
|
||||
},
|
||||
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5173,
|
||||
proxy: {
|
||||
// Rule #1: Handle all search requests
|
||||
'/search': {
|
||||
target: 'http://backend_office_dev:4056',
|
||||
changeOrigin: true,
|
||||
},
|
||||
// Rule #2 (NEW): Handle all authentication requests
|
||||
'/auth': {
|
||||
target: 'http://backend_office_dev:4056',
|
||||
changeOrigin: true,
|
||||
},
|
||||
// Add more rules here for your other API blueprints if needed
|
||||
// For example, if you have delivery routes:
|
||||
// '/delivery': {
|
||||
// target: 'http://backend_office_dev:4056',
|
||||
// changeOrigin: true,
|
||||
// },
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user