fix(billing): add billing feature flags as Dockerfile build args
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 16m1s
Workflow / ⚫️ Test (push) Has been skipped

NEXT_PUBLIC_ENABLE_PERSONAL_ACCOUNT_BILLING and
NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_BILLING must be set at build time
(ARG/ENV in Dockerfile + build args in docker-compose) because Next.js
bakes NEXT_PUBLIC_* into the bundle during 'next build'. Setting them
only as runtime environment vars has no effect.
This commit is contained in:
Zaid Marzguioui
2026-04-03 11:51:02 +02:00
parent 28188bb3a6
commit b6092adc3e
2 changed files with 6 additions and 0 deletions

View File

@@ -333,6 +333,8 @@ services:
# Stripe (build-time)
NEXT_PUBLIC_BILLING_PROVIDER: stripe
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: ${NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY}
NEXT_PUBLIC_ENABLE_PERSONAL_ACCOUNT_BILLING: 'true'
NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_BILLING: 'true'
restart: unless-stopped
depends_on:
supabase-kong: