apps/web had no request-dependent output — one route, all copy imported
from src/content/*.json at build time, and not a server function or loader
in the app — so every request paid for an SSR invocation that produced
byte-identical HTML.
tanstackStart({ prerender: { enabled: true } }) runs that same server
bundle once at build time and writes dist/client/index.html, which is
already the worker's assets directory. Cloudflare now serves the page from
the asset layer: verified under wrangler dev, GET / returns
CF-Cache-Status: HIT, so the worker never runs. It is still built and
deployed, and still answers what the assets miss — GET /nope returns a
worker-rendered 404 exactly as before.
Also ignore .wrangler/, the local state dir `make web:preview` writes.
45 lines
810 B
Plaintext
45 lines
810 B
Plaintext
# Reference projects — read-only, never tracked
|
|
reference/
|
|
|
|
# Dependencies
|
|
node_modules/
|
|
.pnpm-store/
|
|
|
|
# Build output
|
|
dist/
|
|
*.tsbuildinfo
|
|
|
|
# TanStack Start / Nitro — apps/web's server build and router scratch dir.
|
|
# routeTree.gen.ts is deliberately NOT ignored: it is committed so a clean
|
|
# checkout typechecks without running `tsr generate` first.
|
|
.output/
|
|
.nitro/
|
|
.tanstack/
|
|
|
|
# Wrangler's local state and scratch dirs, written by `make web:preview`
|
|
# (wrangler dev). Machine-local simulation of the Cloudflare runtime.
|
|
.wrangler/
|
|
|
|
# Turbo
|
|
.turbo/
|
|
|
|
# Storybook — the built catalogue, and the cache its Vite builder keeps
|
|
storybook-static/
|
|
.storybook-cache/
|
|
|
|
# Runtime / local data
|
|
.airship/
|
|
*.log
|
|
logs/
|
|
|
|
# Editor / OS
|
|
.DS_Store
|
|
.idea/
|
|
.vscode/*
|
|
!.vscode/extensions.json
|
|
|
|
# Env
|
|
.env
|
|
.env.*
|
|
!.env.example
|