Cloudflare Hosting Split

Veilor uses a split hosting model.

Public Site

The public site is static and deploys to Cloudflare Pages:

  • veilor.fi
  • www.veilor.fi redirects to https://veilor.fi
  • build command: npm run build
  • output directory: dist

Portal

The portal runs locally and is routed through Cloudflare Tunnel:

  • portal.veilor.fi
  • no static home IP required
  • no DDNS updater required in the preferred design
  • protect with Cloudflare Access before exposing private functionality

The static site and portal should stay separate until there is a clear reason to share code.