We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a552669 commit bd8333fCopy full SHA for bd8333f
frontend/constants/api.ts
@@ -1,4 +1,7 @@
1
-const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || "/api";
+const API_BASE_URL =
2
+ typeof window === "undefined"
3
+ ? process.env.INTERNAL_API_URL
4
+ : process.env.NEXT_PUBLIC_API_URL;
5
6
export const API_PREFIX =
7
process.env.NEXT_PUBLIC_API_MODE === "mock"
frontend/docker-compose.yml
@@ -1,14 +1,15 @@
-version: '3.8'
+version: "3.8"
services:
frontend:
build:
context: ..
dockerfile: frontend/Dockerfile
8
ports:
9
- - '80:3000'
+ - "80:3000"
10
environment:
11
- NODE_ENV=production
12
+ - INTERNAL_API_URL=http://localhost:3000/api
13
restart: unless-stopped
14
networks:
15
- app-network
0 commit comments