Repository navigation
ci(pages): switch the gateway and notification service on with repository variables - #399
Merged
Merged
Conversation
…tory variables The Pages build passes PAGES_GATEWAY_URL, PAGES_GATEWAY_LABEL and PAGES_NOTIFY_URL through to NEXT_PUBLIC_GATEWAY_URL, NEXT_PUBLIC_GATEWAY_LABEL and NEXT_PUBLIC_NOTIFY_URL. Unset variables pass empty strings, which the app reads as no service, so both features stay hidden until the owner sets them. The hosting docs say how to turn each one on and off. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…w to rebuild one that names them An unset repository variable arrives as an empty string, which Next inlines, so the Pages build no longer matched a rebuild that leaves the variable out. The build step now unsets empty ones. verify-the-app.md names the service variables a rebuild must repeat, and the hosting docs say to run the workflow on master rather than re-run an old run, use https for the gateway, and that notify accepts a loopback http service. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The Pages build reads the optional services' URLs from repository variables:
PAGES_GATEWAY_URLNEXT_PUBLIC_GATEWAY_URLPAGES_GATEWAY_LABELNEXT_PUBLIC_GATEWAY_LABELPAGES_NOTIFY_URLNEXT_PUBLIC_NOTIFY_URLAn unset variable reaches the build as an empty string, which Next would inline as
"". The build step unsets empty ones (andPAGES_DEVNET_NOTICE, which had the same problem), so the Pages build stays byte-identical to a rebuild that leaves them out.docs/hosting/forge-gateway.mdanddocs/hosting/forge-notify.mdsay how to turn each one on and off, and their dashhq checklists now point at the variables.docs/guides/verify-the-app.mdnames the variables a rebuild must repeat.Why
The gateway and forge-notify shipped (#380, #387). The web app shows them only when its build names their URL, and the Pages workflow had no way to pass one, so turning them on for forge.dashhq.org meant editing the workflow. Now it takes a variable and a deploy, and the features stay hidden until the services are up.
How tested
${{ vars.X }}an empty string.gatewayConfig(lib/gateway.ts) andnormalizeUrl(lib/notify/config.ts) both read an empty string as "no service", and both have unit tests for that. The repository has no Actions variables set today (gh api repos/PastaPastaPasta/dash-forge/actions/variables), so the next deploy is unchanged: no HTTPS clone row, no email and push section.Limits
PAGES_DEVNET_NOTICE.🤖 Generated with Claude Code