@@ -27,7 +27,6 @@ pnpm run dev
2727pnpm run build
2828pnpm run check
2929pnpm run deploy:dry-run
30- pnpm run deploy:preview:dry-run
3130pnpm run format
3231pnpm run format:check
3332pnpm run lint
@@ -38,14 +37,20 @@ pnpm run typecheck
3837## Cloudflare deployment
3938
4039Use the repository root as the Cloudflare Workers Builds root directory. Run ` pnpm run build ` , then
41- ` pnpm run deploy ` for ` main ` or ` pnpm run deploy:preview ` for other branches. The deploy script uses
42- the connected Worker name that Cloudflare supplies and does not repeat the build during Workers
43- Builds.
44-
45- For a local upload check, set ` CLOUDFLARE_WORKER_NAME ` to ` samebase-sidebars-example ` , then run one
46- of the dry-run commands above. ` wrangler.jsonc ` publishes ` dist/client ` with the standard Samebase
47- observability and SPA settings. ` public/_redirects ` maps ` / ` to its prerendered HTML file while
48- ` index.html ` remains the SPA fallback.
40+ ` pnpm run deploy ` for ` main ` or ` pnpm run deploy:preview ` for other branches. Wrangler uses the
41+ connected Worker name that Cloudflare supplies. Enable native Worker Previews for the existing
42+ connection as described in the
43+ [ migration guide] ( https://samebase.com/docs/cloudflare-previews-migration ) . This app does not use
44+ Convex or deploy keys.
45+
46+ Build before a manual deploy. Use ` pnpm run deploy --name samebase-sidebars-example ` for production
47+ or ` pnpm run deploy:preview --worker-name samebase-sidebars-example ` for a preview. For a local
48+ check without an upload, run ` pnpm run deploy:dry-run --name samebase-sidebars-example ` . It builds
49+ the app before the production dry run. Worker Previews has no dry-run mode.
50+
51+ ` wrangler.jsonc ` publishes ` dist/client ` with the standard Samebase observability and SPA settings.
52+ ` public/_redirects ` maps ` / ` to its prerendered HTML file while ` index.html ` remains the SPA
53+ fallback.
4954
5055## Architecture
5156
0 commit comments