Skip to content

Commit

Permalink
empty public base path per default when building docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Mar 19, 2024
1 parent 331bef3 commit 31d3f1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ COPY --from=bun /usr/local/bin/bunx /usr/local/bin
COPY . .

ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_PUBLIC_BASE_PATH ""

RUN bun i --frozen-lockfile
RUN cp /app/apps/exhibition-live/next.config.standalone.js /app/apps/exhibition-live/next.config.js
Expand Down
4 changes: 2 additions & 2 deletions apps/exhibition-live/next.config.standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const nextConfig = {
images: {
unoptimized: true,
},
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '/exhibition-live',
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
publicRuntimeConfig: {
NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID: process.env.NEXT_PUBLIC_GAPI_OAUTH_CLIENT_ID,
NEXT_PUBLIC_BASE_PATH: process.env.NEXT_PUBLIC_BASE_PATH || '/exhibition-live',
NEXT_PUBLIC_BASE_PATH: process.env.NEXT_PUBLIC_BASE_PATH,
}
}

Expand Down

0 comments on commit 31d3f1d

Please sign in to comment.