Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

fix env

Bill Yang49b51cd994e7
diff --git a/client/Dockerfile b/client/Dockerfile
index 50ac6d083..7d80a810c 100644
--- a/client/Dockerfile
+++ b/client/Dockerfile
@@ -19,6 +19,7 @@ COPY . .
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED 1
+ARG NEXT_PUBLIC_BACKEND_URL
ENV NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL}
RUN npm run build
diff --git a/docker-compose.yml b/docker-compose.yml
index 837a1a3d4..c710eda54 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -53,6 +53,8 @@ services:
build:
context: ./client
dockerfile: Dockerfile
+ args:
+ NEXT_PUBLIC_BACKEND_URL: ${BASE_URL}
ports:
- "3002:3002"
environment: