Skip to content

Commit 355a042

Browse files
committed
chore(ci): drop redundant server secrets from deploy build env
The Worker reads Supabase service role, Anthropic, Google Maps, and ADMIN_SECRET at runtime from its own Cloudflare Variables and Secrets, so injecting them at build time was redundant. Keep only NEXT_PUBLIC_*, which Next.js must inline into the client bundle during the CI build. https://claude.ai/code/session_01UcazDxsJCyZoTop3psfTY2
1 parent b2296a3 commit 355a042

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ jobs:
3434
- name: Build (OpenNext for Cloudflare)
3535
run: npm run cf:build
3636
env:
37+
# Only NEXT_PUBLIC_* belong here: Next.js inlines them into the client
38+
# bundle at build time. Server-only secrets (Supabase service role,
39+
# Anthropic, Google Maps, ADMIN_SECRET) are read at runtime from the
40+
# Cloudflare Worker's own Variables and Secrets — that's the
41+
# authoritative source — so they are intentionally not injected here.
3742
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
3843
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
39-
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
40-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
41-
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
42-
ADMIN_SECRET: ${{ secrets.ADMIN_SECRET }}
4344

4445
- name: Cloudflare auth diagnostics
4546
run: |

0 commit comments

Comments
 (0)