feat(deploy): add Cloudflare Workers no-login demo build - #2
Merged
Conversation
A gated demo-deploy path builds the app for the Cloudflare Workers runtime as a public, no-login showcase, without touching the default Node build. - VITE_SKIP_AUTH bypasses the auth guard / requireUser / user menu, running as a fixed demo user (src/lib/demo-mode.ts); the better-auth/pg chain is then never loaded at runtime (dynamic imports + short-circuits), keeping the Workers bundle clean. - DEPLOY_TARGET=cloudflare swaps in @cloudflare/vite-plugin (the official TanStack Start path; provides AsyncLocalStorage for server fns during SSR) instead of the Nitro node-server preset, fixing the 'No Start context found in AsyncLocalStorage' 500. - Adds wrangler.jsonc, build:cf/preview:cf/deploy:cf scripts, a pg-native stub, and docs/deploy-cloudflare.md. - build-base strips all of this from the scaffold base (5 clean/ overrides + removals + dep/script pruning) so scaffolded products stay deploy-agnostic with no auth bypass. Default 'bun run build' / 'start' (Node server, full login) unchanged.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
open-dashboard | 82ca86e | Jun 22 2026, 09:13 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A gated demo-deploy path builds the app for the Cloudflare Workers runtime as a public, no-login showcase, without touching the default Node build.
Default 'bun run build' / 'start' (Node server, full login) unchanged.