Website for Mtoko Ltd — AI & Building Automation.
Built with Astro, deployed on Cloudflare Pages.
npm install
npm run dev # Local dev server at localhost:4321
npm run build # Production build to ./dist
npm run preview # Preview production build- Go to Cloudflare Pages
- Click Create a project → Connect to Git
- Select this repository
- Configure build settings:
- Build command:
npm run build - Build output directory:
dist - Node.js version: 20 (set via environment variable
NODE_VERSION=20)
- Build command:
- Click Save and Deploy
Once the Cloudflare Pages project is deployed:
- In Cloudflare Pages → your project → Custom domains → Set up a custom domain
- Enter
mtoko.netandwww.mtoko.net - Cloudflare will provide DNS records to configure
In Fasthosts DNS settings for mtoko.net:
| Type | Name | Content |
|---|---|---|
| CNAME | @ | <your-project>.pages.dev |
| CNAME | www | <your-project>.pages.dev |
Replace <your-project> with your Cloudflare Pages project name.
Note: If Fasthosts doesn't allow CNAME on the root (@), use an A record pointing to Cloudflare's IP (192.0.2.1) — Cloudflare Pages will handle the routing. Alternatively, use Cloudflare's nameservers for full DNS management.
DNS propagation can take up to 48 hours but usually completes within minutes.