Skip to content

Commit 0f3459c

Browse files
HardAndHeavyrathlinus
authored andcommitted
feat: add NEXT_PUBLIC_LOCALE_PREFIX build argument to Dockerfile
1 parent d5017a2 commit 0f3459c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ ENV NEXT_TELEMETRY_DISABLED=1
88
# at build time, so it cannot be changed without rebuilding.
99
ARG NEXT_PUBLIC_BASE_PATH=
1010
ENV NEXT_PUBLIC_BASE_PATH=$NEXT_PUBLIC_BASE_PATH
11+
# Optional: avoid next-intl rewrite loops when served under a subpath.
12+
# Baked in at build time.
13+
ARG NEXT_PUBLIC_LOCALE_PREFIX=
14+
ENV NEXT_PUBLIC_LOCALE_PREFIX=$NEXT_PUBLIC_LOCALE_PREFIX
1115
# Optional: fallback UI locale (e.g. tr, de, fr) used when the visitor's
1216
# Accept-Language header does not match any supported locale. Baked in at
1317
# build time because next-intl wires it into client-side routing too.

0 commit comments

Comments
 (0)