mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-19 08:28:10 +02:00
feat: allow self-hosters to enable Stack Auth via Dockerfile build args (v33.0) (#445)
* allow self-hosters to enable Stack Auth via Dockerfile build args * fix: drop unrelated whitespace churn from ui/Dockerfile Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: NEGM <abdelrhmannegm@Abdelrhmans-MacBook-Air.local> Co-authored-by: Abhishek Kumar <abhishek@a6k.me> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
37c4bda0c7
commit
abfd5e4cdd
1 changed files with 9 additions and 0 deletions
|
|
@ -42,6 +42,15 @@ ENV NEXT_PUBLIC_CHATWOOT_URL="https://chat.dograh.com"
|
|||
ENV NEXT_PUBLIC_CHATWOOT_TOKEN="3fkFx2mCEjNHjM9gaNc4A82X"
|
||||
ENV BACKEND_URL="http://api:8000"
|
||||
|
||||
# Stack Auth (optional, for self-hosted social login). NEXT_PUBLIC_* values must
|
||||
# be set at build time so Next.js inlines them into the browser bundle; setting
|
||||
# them as runtime container env has no effect. Unset by default (empty strings),
|
||||
# which leaves the official image on the built-in local auth flow.
|
||||
ARG NEXT_PUBLIC_STACK_PROJECT_ID
|
||||
ARG NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY
|
||||
ENV NEXT_PUBLIC_STACK_PROJECT_ID=$NEXT_PUBLIC_STACK_PROJECT_ID
|
||||
ENV NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=$NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY
|
||||
|
||||
# Build the application with standalone mode
|
||||
# Increase Node.js heap size to prevent out-of-memory errors during build
|
||||
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue