Update FrontAdmin URLs to dev/stage domains
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+5
-2
@@ -1,17 +1,20 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
const apiBaseUrl = process.env.VITE_API_BASE_URL ?? 'https://admin-api.dev.eventhub.local';
|
||||
const wsUrl = process.env.VITE_WS_URL ?? 'wss://admin-ws.dev.eventhub.local';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/v1': {
|
||||
target: 'https://admin-api.eventhub.local',
|
||||
target: apiBaseUrl,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
'/admin/ws': {
|
||||
target: 'wss://admin-ws.eventhub.local',
|
||||
target: wsUrl,
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
|
||||
Reference in New Issue
Block a user