chore(frontend-admin): 🔧 Update Vite build config for admin frontend to optimize asset handling and environment setup
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
187c04cd02
commit
3e5e20bf46
1 changed files with 12 additions and 0 deletions
|
|
@ -187,6 +187,18 @@ export default defineConfig({
|
|||
target: blogUrl,
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api/reviews': {
|
||||
target: process.env.VITE_REVIEWS_URL || 'http://localhost:3030',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api/client-intel': {
|
||||
target: process.env.VITE_CLIENT_INTEL_URL || 'http://localhost:3031',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api/trust': {
|
||||
target: process.env.VITE_TRUST_URL || 'http://localhost:3032',
|
||||
changeOrigin: true,
|
||||
},
|
||||
// All other API requests → platform-admin backend (shop, merch, queues)
|
||||
'/api': {
|
||||
target: apiUrl,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue