From 923c86a3b39b0ca6c1e94af5c29e9f43867b813c Mon Sep 17 00:00:00 2001 From: Michilis Date: Mon, 16 Feb 2026 22:53:59 +0000 Subject: [PATCH] Fix FRONTEND_URL pointing to wrong port, breaking cache revalidation - Update FRONTEND_URL default from localhost:3002 to localhost:3019 (actual frontend port) - Reorder systemd service so EnvironmentFile loads before Environment overrides Co-authored-by: Cursor --- backend/.env.example | 2 +- deploy/spanglish-backend.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/.env.example b/backend/.env.example index 90332ce..eec048d 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -19,7 +19,7 @@ GOOGLE_CLIENT_ID= # Server Configuration PORT=3001 API_URL=http://localhost:3001 -FRONTEND_URL=http://localhost:3002 +FRONTEND_URL=http://localhost:3019 # Revalidation secret (shared with frontend for on-demand cache revalidation) # Must match the REVALIDATE_SECRET in frontend/.env diff --git a/deploy/spanglish-backend.service b/deploy/spanglish-backend.service index 5f44099..b69a4c3 100644 --- a/deploy/spanglish-backend.service +++ b/deploy/spanglish-backend.service @@ -8,9 +8,9 @@ Type=simple User=spanglish Group=spanglish WorkingDirectory=/home/spanglish/Spanglish/backend +EnvironmentFile=/home/spanglish/Spanglish/backend/.env Environment=NODE_ENV=production Environment=PORT=3018 -EnvironmentFile=/home/spanglish/Spanglish/backend/.env ExecStart=/usr/bin/node dist/index.js Restart=on-failure RestartSec=10