From 14b566ce2a60324f30a2bd96637ea918098c8f01 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Fri, 2 Jan 2026 21:17:32 +0100 Subject: [PATCH] feat: add DEV_PORT env var for running dev alongside production --- .gitignore | 5 +++++ frontend/vite.config.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bd9dad3..da36ba0 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,8 @@ docker-compose.override.yml # Claude Code project instructions (local only) CLAUDE.md + +# Dev artifacts +dev.env +backend/vessel-backend +data/ diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 61c9488..30befdb 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -4,11 +4,12 @@ import { defineConfig } from 'vite'; // Use environment variable or default to localhost (works with host network mode) const ollamaUrl = process.env.OLLAMA_API_URL || 'http://localhost:11434'; const backendUrl = process.env.BACKEND_URL || 'http://localhost:9090'; +const devPort = parseInt(process.env.DEV_PORT || '7842', 10); export default defineConfig({ plugins: [sveltekit()], server: { - port: 7842, + port: devPort, proxy: { // Backend health check '/health': {