Skip to content

imprisonedmind/web24

Repository files navigation

web24

Personal site monorepo with a Vite SPA frontend and Hono API deployed as a Cloudflare Worker with Workers Assets.

Development

bun run dev

The web app runs through Vite on http://localhost:5173 and proxies /api to the local Bun API on http://localhost:3001.

Environment

Local env values live in the repo-root .env.local file.

Required public build variable:

VITE_SITE_URL=https://example.com

Required server/runtime variable:

CONVEX_URL=https://example.convex.cloud

apps/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.

Build And Deploy

bun run build
bun run deploy:edge

About

another personal website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors