Deployment
The docs app is a static Astro Starlight site located in docs/.
Local Development
Section titled “Local Development”cd docsnpm installnpm run devThe docs app uses Node.js >=22.12.0. This requirement applies only to the docs
site build tooling. The ResourcesJS package itself still supports Node.js
>=18.18.0.
Production Build
Section titled “Production Build”cd docsnpm run buildThe generated static site is written to:
docs/dist/GitHub Pages
Section titled “GitHub Pages”This repository includes a GitHub Actions workflow that builds and deploys the
docs site from main.
To use resourcesjs.amrachraf.cloud with GitHub Pages:
- In GitHub, set Pages source to GitHub Actions.
- Point the DNS record for
resourcesjs.amrachraf.cloudto GitHub Pages. - Keep
docs/public/CNAMEset toresourcesjs.amrachraf.cloud.
Cloudflare Pages
Section titled “Cloudflare Pages”Cloudflare Pages is also a good fit.
Recommended settings:
| Setting | Value |
|---|---|
| Root directory | docs |
| Build command | npm run build |
| Build output directory | dist |
| Node version | 22.12.0 or newer |
Then connect the custom domain resourcesjs.amrachraf.cloud in the Cloudflare
Pages dashboard.