Compare commits

...

2 Commits

Author SHA1 Message Date
4d538a5668 Merge pull request 'feat/members-redesign' (#1) from feat/members-redesign into main
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 5m44s
Workflow / ⚫️ Test (push) Has been skipped
Reviewed-on: #1
2026-04-03 12:11:03 +00:00
Zaid Marzguioui
b6092adc3e 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.
2026-04-03 11:51:02 +02:00
2 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ ARG NEXT_PUBLIC_ENABLE_MEETING_PROTOCOLS=true
ARG NEXT_PUBLIC_ENABLE_VERBANDSVERWALTUNG=true
ARG NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
ARG NEXT_PUBLIC_BILLING_PROVIDER=stripe
ARG NEXT_PUBLIC_ENABLE_PERSONAL_ACCOUNT_BILLING=true
ARG NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_BILLING=true
ENV NEXT_PUBLIC_CI=${NEXT_PUBLIC_CI}
ENV NEXT_PUBLIC_SITE_URL=${NEXT_PUBLIC_SITE_URL}
ENV NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
@@ -30,6 +32,8 @@ ENV NEXT_PUBLIC_ENABLE_MEETING_PROTOCOLS=${NEXT_PUBLIC_ENABLE_MEETING_PROTOCOLS}
ENV NEXT_PUBLIC_ENABLE_VERBANDSVERWALTUNG=${NEXT_PUBLIC_ENABLE_VERBANDSVERWALTUNG}
ENV NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY}
ENV NEXT_PUBLIC_BILLING_PROVIDER=${NEXT_PUBLIC_BILLING_PROVIDER}
ENV NEXT_PUBLIC_ENABLE_PERSONAL_ACCOUNT_BILLING=${NEXT_PUBLIC_ENABLE_PERSONAL_ACCOUNT_BILLING}
ENV NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_BILLING=${NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_BILLING}
RUN pnpm --filter web build
# --- Run (slim for smaller image than full Debian) ---

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: