Cloudflare Pages + Vite

Vanilla JS starter with a tiny API built in.

The frontend lives in src/, the dummy endpoint lives in functions/, and one deploy command publishes the build to Cloudflare Pages.

Pages docs

What you get

  • Wrangler-powered local dev and Vite production builds
  • Cloudflare Pages Function at /api/hello
  • A deploy script that pushes dist/ to Pages

API response

Idle

Click the button to call /api/hello.

No response yet.