Skip to content

Repository files navigation

mtoko.net

Website for Mtoko Ltd — AI & Building Automation.

Built with Astro, deployed on Cloudflare Pages.

Development

npm install
npm run dev       # Local dev server at localhost:4321
npm run build     # Production build to ./dist
npm run preview   # Preview production build

Deploy to Cloudflare Pages

1. Connect repository

  1. Go to Cloudflare Pages
  2. Click Create a projectConnect to Git
  3. Select this repository
  4. Configure build settings:
    • Build command: npm run build
    • Build output directory: dist
    • Node.js version: 20 (set via environment variable NODE_VERSION=20)
  5. Click Save and Deploy

2. Custom domain (Fasthosts DNS)

Once the Cloudflare Pages project is deployed:

  1. In Cloudflare Pages → your project → Custom domainsSet up a custom domain
  2. Enter mtoko.net and www.mtoko.net
  3. 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.

About

mtoko.net website — Astro + Cloudflare Pages

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages