fix: build share urls from auth_url instead of localhost
docker build sets next_public_app_url to localhost; preferring it over runtime auth_url made prod share links point at localhost:3000.
This commit is contained in:
@@ -16,7 +16,9 @@ ENV CI=true
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV DATABASE_URL=postgres://build:build@localhost:5432/build
|
||||
ENV AUTH_SECRET=build-time-placeholder
|
||||
# Build-only placeholder. Runtime public URL is AUTH_URL from stack.env — never prefer this.
|
||||
ENV NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||
ENV AUTH_URL=http://localhost:3000
|
||||
COPY . .
|
||||
RUN pnpm install --offline --frozen-lockfile
|
||||
RUN --mount=type=cache,id=famapp-nextjs,target=/app/.next/cache \
|
||||
|
||||
Reference in New Issue
Block a user