Add development configuration for marketing service in Docker and update frontend scripts

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-13 16:13:13 +00:00
parent ad9aba87d7
commit 5f5d1c91a8
8 changed files with 333 additions and 20 deletions

View File

@@ -83,10 +83,11 @@ export default defineConfig(({ mode }) => {
...(isDev && {
server: {
host: "0.0.0.0", // Allow external connections (for Docker)
port: 5173,
strictPort: false, // Allow port fallback if 5173 is busy
port: isMarketingBuild ? 5174 : 5173, // Different port for marketing dev
strictPort: false, // Allow port fallback if port is busy
allowedHosts: [
"app.igny8.com",
"igny8.com",
"localhost",
"127.0.0.1",
],
@@ -95,11 +96,11 @@ export default defineConfig(({ mode }) => {
},
hmr: {
// Behind reverse proxy - use same origin strategy
// Client connects via public domain (app.igny8.com) on default HTTPS port (443)
// Caddy automatically proxies WebSocket upgrades from 443 to 5173
// Client connects via public domain on default HTTPS port (443)
// Caddy automatically proxies WebSocket upgrades from 443 to dev port
protocol: "wss",
// Don't specify host/port - Vite will use same origin as page
// This ensures client connects to wss://app.igny8.com (port 443 implicit)
// This ensures client connects to wss://domain.com (port 443 implicit)
},
// Increase timeout for slow connections and dependency pre-bundling
timeout: 120000, // 120 seconds (2 minutes) to match Caddy timeout