cloudwerk-config
Cloudwerk Configuration
Reference for cloudwerk.config.ts — the main configuration file for Cloudwerk applications.
When to Apply
Reference these guidelines when:
- Creating a new Cloudwerk project
- Choosing between hono-jsx and react renderers
- Configuring Vite plugins (Tailwind CSS, etc.)
- Setting up path aliases
- Troubleshooting build or rendering issues
Configuration File
Every Cloudwerk app has a cloudwerk.config.ts at the project root:
import { defineConfig } from '@cloudwerk/core'
More from squirrelsoft-dev/cloudwerk
cloudwerk-routing
File-based routing conventions for Cloudwerk, a full-stack framework for Cloudflare Workers. Use when creating pages, API routes, layouts, middleware, or error boundaries. Triggers on tasks involving route files (page.tsx, route.ts, layout.tsx, middleware.ts, error.tsx, not-found.tsx), dynamic segments ([id], [...slug]), route groups ((group)), loaders, actions, or data loading patterns.
6cloudwerk-handlers
Handler, middleware, and component patterns for Cloudwerk applications on Cloudflare Workers. Use when writing route handlers, middleware, page/layout components, or client-side interactive components. Triggers on tasks involving CloudwerkHandler, response helpers (json, redirect), Cloudflare bindings (D1, KV, R2), middleware composition, PageProps, LayoutProps, or client directives.
6cloudwerk-monorepo
Monorepo workflow for the Cloudwerk framework. Use when building, testing, or releasing Cloudwerk packages. Covers pnpm workspace commands, package structure, changeset requirements, and test workflows. Triggers on tasks involving building packages, running tests, creating changesets, or understanding the monorepo structure.
3