This commit is contained in:
parent
e896968aa8
commit
987e757d8c
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue