Astro site for three services: Translation/Editing/Writing, Financial Protection, and Pusaka Management Planning. Static-first, hosted on Cloudflare Pages.
- Homepage (
/) — single-viewport service selector - Service pages (
/services/translation-editing-writing,/services/financial-protection, and/services/pusaka-management) - Article system — Content Collections under
src/content/articles/, with category listing and individual article routes /consultationand/enquiry— booking and enquiry flows- Shared SEO metadata, canonical URLs, Open Graph/Twitter metadata
- Static
robots.txt, XML sitemap and custom 404 page - Cloudflare security/cache headers
- CI build validation via GitHub Actions
Business and contact details are centralised in src/config/site.ts.
Update that file rather than duplicating values across components.
The canonical production URL is supplied through:
PUBLIC_SITE_URL=https://your-production-domain.example
See .env.example for the expected variable.
You will also need to:
- Confirm the Google Calendar Appointment Schedule URL in
site.ts. - Confirm the Google Apps Script enquiry endpoint and its production CORS/origin behaviour.
- Replace remaining placeholder copy (anything in
[brackets]) throughout the service pages, FAQs and content metadata. - Add real articles for the financial-protection and pusaka categories when those sections are ready.
- Configure
PUBLIC_SITE_URLin the production deployment environment.
npm ci
npm run devnpm run buildThe build output is the dist/ directory.
- Astro 7.2.4
- No UI framework or server adapter
- Static output by default
- Content collections use Astro's current Content Layer API
Cloudflare Pages serves the generated dist/ directory directly. An
Astro Cloudflare adapter is not required unless SSR features are introduced.
Use:
- Framework preset: Astro
- Build command:
npm run build - Build output directory:
dist - Root directory: repository root
- Production branch:
main - Preview deployments: enabled for branches/PRs
The repository may only be connected to one Cloudflare account for Git-based Pages deployment. If Cloudflare reports that the repository is already used by a Pages project in another account, manage the existing Pages project or disconnect/reconnect the repository there rather than creating a duplicate.