Personal site monorepo with a Vite SPA frontend and Hono API deployed as a Cloudflare Worker with Workers Assets.
bun run devThe web app runs through Vite on http://localhost:5173 and proxies /api to the local Bun API on http://localhost:3001.
Local env values live in the repo-root .env.local file.
Required public build variable:
VITE_SITE_URL=https://example.comRequired server/runtime variable:
CONVEX_URL=https://example.convex.cloudapps/web/vite.config.ts points Vite at the repo root with envDir, so Vite loads .env, .env.local, and mode-specific env files directly. Browser-visible values must use the VITE_ prefix.
Cloudflare Worker variables are read from runtime bindings. This repo keeps static production values out of wrangler.jsonc; set VITE_SITE_URL, CONVEX_URL, and secrets in the Cloudflare dashboard, and keep_vars preserves those dashboard values on deploy.
bun run build
bun run deploy:edge