Repository navigation
feat(public-sites): add independent rivethub.io, .org, and .dev builds - #1243
Merged
Merged
Conversation
The three RivetHub domains need distinct static trees with their own canonical URLs. apps/site stays the rivetos.dev docs app so a later nx site deploy does not replace that host with rivethub.dev.
Node 22 util.parseEnv returns a plain object. Node 25+ (nodejs#60038) returns a null-prototype object. assert.deepEqual from node:assert/strict compares [[Prototype]], so the passthrough wrapper failed on Node 26. Copy onto Object.create(null) so the KEY=value map is the same on both.
philbert440
approved these changes
Nov 9, 2026
philbert440
left a comment
Owner
There was a problem hiding this comment.
Approved site source for live deploy; exact SHA 519c407.
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.
Why
rivethub.org currently 302s to rivethub.io, and rivethub.dev is served as the old RivetOS docs. These need independent public sites with their own canonical URLs, without retargeting
apps/site/ rivetos.dev.What changed
apps/public-sites.nx rivethub-sitestill builds rivethub.io and now injects the family bar.nx rivethub-organdnx rivethub-devare new independent outputs.nx site/apps/sitestays canonical https://rivetos.dev. Community pages list in-repo plugins, examples, and integrations. Generator examples are labeled Proposal. Extra policy is labeled DRAFT.parseEnvFilealways returns a null-prototype KEY=value map so Node 22 and Node 25+ (nodejs#60038) agree undernode:assert/strictdeepEqual.Issues closed
None of the open
area:sites-docsissues fit this PR without widening it or needing hosting, policy, or unverifiable facts.Skipped:
apps/siteand needs DNS/Caddy.rivethub-hubhas nodevicesubcommand; electron README and GATEWAY-MTLS.md disagree on enroll (rh cert renewvsrivet-ca.sh issue-client).install-datahub.htmlalready documentshttps://get.rivethub.io/datahub.sh; this PR did not change that.Scope
Source, Nx build entrypoints, and tests. Does not add hosting, Caddy, rsync, or ops jobs. Does not merge.
Tradeoffs
A second Astro docs app was rejected so a later
nx sitedeploy cannot overwrite rivetos.dev with rivethub.dev.Blast Radius
Product install/downloads/support/privacy/releases stay on rivethub.io. rivetos.dev stays
nx site. Live .org/.dev routing is unchanged until a separate deploy.Verification
#1242(d1557f66).git merge origin/mainis already up to date. No merge commit.node --test apps/public-sites/*.test.mjs apps/rivethub-site/scripts/*.test.mjs: 36 pass / 0 fail on Node v22.23.4 and Node v26.13.0.node apps/rivethub-site/scripts/build.mjs,node apps/rivethub-org/scripts/build.mjs,node apps/rivethub-dev/scripts/build.mjs, andnpx nx build site. Canonicals: rivethub.io / rivethub.org / rivethub.dev;apps/site/astro.config.mjsremainssite: 'https://rivetos.dev'.519c4076872612440dd1daca7fce1166fd8c754d: Commit Authorship pass, Secrets & Private IP Scan pass, ci pass. Publish npm / container / Notify Deploy skipped (not main).Head SHA for merge:
519c4076872612440dd1daca7fce1166fd8c754d.