Skip to content

Expose live private-candidate env vars to Pages build#19

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/check-modal-cross-icon-issue
Draft

Expose live private-candidate env vars to Pages build#19
Copilot wants to merge 2 commits into
mainfrom
copilot/check-modal-cross-icon-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 14, 2026

The live page’s private-candidate reveal button is missing in production because build-time env vars aren’t available. This update wires the required variables into the GitHub Pages build so the client can render the reveal control.

  • Workflow configuration
    • Pass NEXT_PUBLIC_LIVE_PRIVATE_CANDIDATES and NEXT_PUBLIC_LIVE_PRIVATE_SECRET_HASH into the build environment for static export.

Example:

- run: bun run build
  env:
    NEXT_PUBLIC_PULSE_API: ${{ vars.PULSE_API_URL }}
    NEXT_PUBLIC_LIVE_PRIVATE_CANDIDATES: ${{ vars.LIVE_PRIVATE_CANDIDATES }}
    NEXT_PUBLIC_LIVE_PRIVATE_SECRET_HASH: ${{ secrets.LIVE_PRIVATE_SECRET_HASH }}

Copilot AI and others added 2 commits May 14, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants