CLK Construction (apps/clk-construction)
CLK Construction (apps/clk-construction)
Section titled “CLK Construction (apps/clk-construction)”Public website for CLK Construction Inc., a Class A contractor serving Roanoke, Virginia: decks, remodeling, residential, and light commercial construction.
Client intake and roadmap: Epic #428.
Architecture (ADR-0003)
Section titled “Architecture (ADR-0003)”- Worker A (this app): stateless Edge SSR (
output: "server",session: false) cached at the Cloudflare edge through Astro’scacheCloudflare()route-cache provider. Every public page carriesCache-Tag: tenant:clk-construction, so a single tag purge refreshes the site after a CMS edit. No D1 or KV bindings. - Worker B (
services/cms-clk-construction): EmDash CMS with the only D1 and R2 bindings.src/middleware.tsproxies/admin*and/_emdash/*to it over theCMS_SERVICEservice binding. If the CMS is unreachable, the public site keeps serving and/adminshows a friendly 503 page.
Quick Start
Section titled “Quick Start”# Both workers (Worker A on :4334, Worker B on :4335), connected through the wrangler dev registrypnpm run dev:clk-construction
# Build both workerspnpm run build:clk-construction
# Typecheck and governance auditpnpm --filter=@siteswarm/app-clk-construction checkpnpm swarm audit --app clk-constructionAstro 7 backgrounds
astro dev/astro previewautomatically when it detects an AI agent. SetASTRO_DEV_BACKGROUND=1orASTRO_PREVIEW_BACKGROUND=1to keep the server in the foreground.
Testing
Section titled “Testing”# Build, serve with astro preview (workerd) on :4334, and run the WCAG 2.1 AA suitepnpm --filter=@siteswarm/app-clk-construction test:a11y