Skip to content

Commit

Permalink
opt out of SSG for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Dec 12, 2023
1 parent 8c31410 commit b5a2099
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/all/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ COPY ./web .
ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_BUILD_STANDALONE true

RUN yarn build
# NOTE: A regular Next.js build will attempt to do static generation for every
# page. But we don't want to constantly be adding force-dynamic to every page so
# this ensures no SSG runs during the Docker build.
RUN yarn next experimental-compile

#
# RUNTIME IMAGE
Expand Down

0 comments on commit b5a2099

Please sign in to comment.