Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

update examples for reaching client/server in .env

Amruth Pillai9ef2a84ac26d
diff --git a/.env.example b/.env.example
index c6dc04ba6..89afe2d83 100644
--- a/.env.example
+++ b/.env.example
@@ -1,7 +1,11 @@
+# Turbo Cache (Optional)
+TURBO_TEAM=
+TURBO_TOKEN=
+
# Server + Client
TZ=UTC
-PUBLIC_URL=http://localhost:3000
-PUBLIC_SERVER_URL=http://localhost:3000/api
+PUBLIC_URL=http://client:3000
+PUBLIC_SERVER_URL=http://server:3100
PUBLIC_GOOGLE_CLIENT_ID=
# Server + Database
diff --git a/client/Dockerfile b/client/Dockerfile
index bb2bec287..26fdc3394 100644
--- a/client/Dockerfile
+++ b/client/Dockerfile
@@ -21,6 +21,12 @@ COPY --from=dependencies /app/node_modules ./node_modules
COPY --from=dependencies /app/schema/node_modules ./schema/node_modules
COPY --from=dependencies /app/client/node_modules ./client/node_modules
+ARG TURBO_TEAM
+ARG TURBO_TOKEN
+
+ENV TURBO_TEAM $TURBO_TEAM
+ENV TURBO_TOKEN $TURBO_TOKEN
+
RUN pnpm run build --filter client
FROM base as production
diff --git a/server/Dockerfile b/server/Dockerfile
index c3469a53f..8ea7ac073 100644
--- a/server/Dockerfile
+++ b/server/Dockerfile
@@ -21,6 +21,12 @@ COPY --from=dependencies /app/node_modules ./node_modules
COPY --from=dependencies /app/schema/node_modules ./schema/node_modules
COPY --from=dependencies /app/server/node_modules ./server/node_modules
+ARG TURBO_TEAM
+ARG TURBO_TOKEN
+
+ENV TURBO_TEAM $TURBO_TEAM
+ENV TURBO_TOKEN $TURBO_TOKEN
+
RUN pnpm run build --filter server
FROM mcr.microsoft.com/playwright:next-jammy as production