Skip to content

docs: host landing page and docs on Vercel at rnsac.appandflow.com - #784

Merged
janicduplessis merged 1 commit into
mainfrom
docs/vercel-rnsac-subdomain
Oct 13, 2026
Merged

janicduplessis merged 1 commit into
mainfrom
docs/vercel-rnsac-subdomain

Conversation

@charlesvinette

@charlesvinette charlesvinette commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Moves the landing page and docs from GitHub Pages (appandflow.github.io/react-native-safe-area-context) to Vercel at https://rnsac.appandflow.com. The layout is the same as before: the landing page (website/) is at / and the docs (docs/) are under /docs/.

  • website/docusaurus.config.js: url → https://rnsac.appandflow.com, baseUrl → /
  • docs/docusaurus.config.ts: url → https://rnsac.appandflow.com, baseUrl → /docs/ (also dropped the GitHub Pages boilerplate comments)
  • website/src/landing/content.js, README.md, CONTRIBUTING.md: links now point at the new domain. The CONTRIBUTING link was already broken (/contributing/ → now /docs/contributing).
  • vercel.json (new): uses the same install/build/merge steps as the old docs-deploy.yml (build both sites, copy docs/build into website/build/docs). An ignoreCommand skips Vercel builds for commits that don't touch website/, docs/ or vercel.json.
  • Removes the GitHub Pages publish workflow (docs-deploy.yml), its path entries in docs-check.yml, and docs/static/.nojekyll. docs-check.yml still builds both sites on PRs.

Vercel setup (already done): the react-native-safe-area-context project exists in the appandflow team and rnsac.appandflow.com is attached to it. DNS and SSL are handled automatically because the zone is on Vercel.

The Vercel project is linked to this repo with main as the production branch. Merging this PR deploys to production, and PRs get preview deployments.

Test Plan

  • Ran the vercel.json install and build commands locally. Both sites build and the merged output has the docs under website/build/docs.
  • Deployed this branch with the Vercel CLI. As the project's first deployment, Vercel promoted it to production, so it's live now. Checked on https://rnsac.appandflow.com:
    • /, /docs/, /docs/usage, /docs/api/use-safe-area-insets and /docs/contributing return 200
    • landing and docs images return 200
    • landing page links go to rnsac.appandflow.com/docs/…

🤖 Generated with Claude Code

Serve the landing page from the root of rnsac.appandflow.com and the docs
under /docs/, instead of appandflow.github.io/react-native-safe-area-context.
Replace the GitHub Pages publish workflow with a Vercel build configured in
vercel.json, and point README/CONTRIBUTING links at the new domain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@janicduplessis
janicduplessis merged commit 06f8fec into main Oct 13, 2026
4 checks passed
@janicduplessis
janicduplessis deleted the docs/vercel-rnsac-subdomain branch October 13, 2026 21:44
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