Update FrontAdmin URLs to dev/stage domains

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-08 17:56:07 +03:00
parent efa7f826aa
commit 95846bde1e
4 changed files with 11 additions and 8 deletions
+5 -2
View File
@@ -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,