We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edfcfe7 commit 2eac322Copy full SHA for 2eac322
Dockerfile
@@ -27,6 +27,16 @@ COPY . .
27
# Uncomment the following line in case you want to disable telemetry during the build.
28
# ENV NEXT_TELEMETRY_DISABLED=1
29
30
+# Set environment variables needed for build
31
+ARG NEXT_PUBLIC_IS_PRODUCTION
32
+ARG NEXT_PUBLIC_PAY_U_KEY_TEST
33
+ARG NEXT_PUBLIC_PAY_U_KEY_PROD
34
+
35
+# Pass them to the build process
36
+ENV NEXT_PUBLIC_IS_PRODUCTION=${NEXT_PUBLIC_IS_PRODUCTION}
37
+ENV NEXT_PUBLIC_PAY_U_KEY_TEST=${NEXT_PUBLIC_PAY_U_KEY_TEST}
38
+ENV NEXT_PUBLIC_PAY_U_KEY_PROD=${NEXT_PUBLIC_PAY_U_KEY_PROD}
39
40
RUN \
41
if [ -f yarn.lock ]; then yarn run build; \
42
elif [ -f package-lock.json ]; then npm run build; \
0 commit comments