๐—ก๐—ผ๐˜๐—ฒ๐˜€ ๐—ผ๐—ป ๐—ง๐—ฎ๐—ป๐—ฆ๐˜๐—ฎ๐—ฐ๐—ธ ๐—ฆ๐˜๐—ฎ๐—ฟ๐˜ ๐—ฎ๐—ป๐—ฑ ๐—–๐—น๐—ผ๐˜‚๐—ฑ๐—ณ๐—น๐—ฎ๐—ฟ๐—ฒ ๐—ช๐—ผ๐—ฟ๐—ธ๐—ฒ๐—ฟ๐˜€

I like frameworks. They keep boring parts boring.

For an AI image site, the frontend is one piece. You need landing pages, account flows, and admin screens.

TanStack Start on Cloudflare Workers simplifies this. It gives you Vite development, full-stack routing, and an edge runtime in one deployment.

I value config over features. Clear config tells your team where the app runs. Messy config makes releases scary.

Start new projects with: pnpm create cloudflare@latest my-app --framework=tanstack-start

For existing projects, add the Cloudflare Vite plugin. This wires your SSR environment to Cloudflare. It stops your app from relying on Node.js assumptions.

Your wrangler.jsonc needs these points:

Keep your package.json scripts simple:

Add Cloudflare bindings only when needed. Use R2 for media or D1 for data. Do not add them for the sake of it. Add them when you need a clear boundary.

Prerender routes for marketing and docs. Avoid prerendering for account pages or payment status. These depend on the user.

Make staging and production explicit. Use separate Worker names and routes. Use the tail command to find runtime mistakes fast.

Config is product infrastructure. Vite config handles the build. Wrangler config handles the run. Scripts handle the workflow.

Keep it small. Keep it readable.

Source: https://dev.to/natalia_c8ace1e6703e8f29f/notes-on-configuring-tanstack-start-for-cloudflare-workers-192n