chore: pull turnstile public key in frontend at build time

This commit is contained in:
zhom
2026-04-08 14:33:01 +04:00
parent 17ee38d316
commit fede1d93a8
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -139,6 +139,13 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build frontend
# NEXT_PUBLIC_* vars are inlined into the client bundle at build time,
# so they must be forwarded explicitly from secrets here — GitHub
# Secrets are NOT automatically exposed as env vars to `run` steps.
# If this env block is missing, released builds ship with undefined
# values where the Turnstile site key should be, and login breaks.
env:
NEXT_PUBLIC_TURNSTILE: ${{ secrets.NEXT_PUBLIC_TURNSTILE }}
run: pnpm exec next build
- name: Verify frontend dist exists
+7
View File
@@ -138,6 +138,13 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build frontend
# NEXT_PUBLIC_* vars are inlined into the client bundle at build time,
# so they must be forwarded explicitly from secrets here — GitHub
# Secrets are NOT automatically exposed as env vars to `run` steps.
# If this env block is missing, released builds ship with undefined
# values where the Turnstile site key should be, and login breaks.
env:
NEXT_PUBLIC_TURNSTILE: ${{ secrets.NEXT_PUBLIC_TURNSTILE }}
run: pnpm exec next build
- name: Verify frontend dist exists