Skip to content

Commit 8f2a8c0

Browse files
drewdaclaude
andauthored
Pass NUXT_AUTH0_CLIENT_ID to production build (#345)
Fixes production `/auth/login` 500s. tlv2-auth's module setup bakes a `disabled.invalid` placeholder into `runtimeConfig.auth0` unless `NUXT_AUTH0_CLIENT_ID` is set at build time (see `@interline-io/tlv2-auth/dist/module.mjs:37`). Staging works because Cloudflare's built-in Pages builder injects env vars at build time; GH Actions wasn't passing this one. related to #332 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b50d0f2 commit 8f2a8c0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/deploy-production.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
env:
3737
NITRO_PRESET: cloudflare_pages
3838
NUXT_PUBLIC_TLV2_PROTOMAPS_APIKEY: ${{ secrets.NUXT_PUBLIC_TLV2_PROTOMAPS_APIKEY }}
39+
# Required: tlv2-auth's build-time guard bakes a "disabled.invalid" placeholder into
40+
# runtimeConfig.auth0 unless NUXT_AUTH0_CLIENT_ID is set during the build.
41+
NUXT_AUTH0_CLIENT_ID: ${{ secrets.NUXT_AUTH0_CLIENT_ID }}
3942

4043
- name: Deploy to Cloudflare Pages
4144
uses: cloudflare/wrangler-action@v3

0 commit comments

Comments
 (0)