From 3d8bee8b1135ba52bcc0576c7cea5eae004d6ed1 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 5 Aug 2025 19:26:29 -0500 Subject: [PATCH] Change vite listen port name to GOTIFY_SERVER_PORT Signed-off-by: eternal-flame-AD --- ui/vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/vite.config.ts b/ui/vite.config.ts index 639f6cf..0a68c60 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -1,7 +1,7 @@ import {defineConfig} from 'vite'; import react from '@vitejs/plugin-react'; -const GOTIFY_PORT = process.env.GOTIFY_PORT ?? '80'; +const GOTIFY_SERVER_PORT = process.env.GOTIFY_SERVER_PORT ?? '80'; export default defineConfig({ build: { @@ -21,12 +21,12 @@ export default defineConfig({ host: '0.0.0.0', proxy: { '^/(application|message|client|current|user|plugin|version|image)': { - target: `http://localhost:${GOTIFY_PORT}/`, + target: `http://localhost:${GOTIFY_SERVER_PORT}/`, changeOrigin: true, secure: false, }, '/stream': { - target: `ws://localhost:${GOTIFY_PORT}/`, + target: `ws://localhost:${GOTIFY_SERVER_PORT}/`, ws: true, rewriteWsOrigin: true, },