mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-05-27 18:42:32 +02:00
chore: pull turnstile public key in frontend at build time
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user