This commit is contained in:
MarkLo 2025-11-21 23:12:41 +08:00
parent e896968aa8
commit 987e757d8c
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
version: '3.8'
version: "3.8"
services:
backend:
@ -27,7 +27,8 @@ services:
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://backend:8000
- NEXT_PUBLIC_API_URL=
- BACKEND_URL=http://backend:8000
depends_on:
- backend
networks:

View File

@ -8,7 +8,7 @@ const nextConfig: NextConfig = {
// In production (Railway): use BACKEND_URL env var or fallback to Railway URL
const isDev = process.env.NODE_ENV === 'development';
const backendUrl = process.env.BACKEND_URL ||
(isDev ? "http://localhost:8000" : "https://tradinaagents-backend.up.railway.app");
(isDev ? "http://localhost:8000" : "https://tradingagents-backend.up.railway.app");
return [
{