Skip to content

docs(start): add Docker with Bun and improved Cloudflare setup for hosting guide #4898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bapspatil
Copy link

Summary

  • Improved Cloudflare Workers configuration using wrangler.jsonc
  • Added Docker containerization guidance using Bun

What changed

  • Deleted Cloudflare Pages references
  • Left Cloudflare Workers section intact, including wrangler.jsonc example and Deploy to Cloudflare button notes
  • Left Docker with Bun section intact, including multi-stage Dockerfile, .dockerignore, optional docker-compose.yaml, and Coolify notes

Why

  • Consolidate Cloudflare guidance around Workers only
  • Align with project preferences for Bun and wrangler.jsonc (wrangler.toml is outdated)
  • Provide developers with the option to self-host their TanStack Start app on their own server with Docker

How to test

  • Docker with Bun
    1. Set target: 'bun' in vite.config.ts
    2. Build image: docker build -t my-tanstack-start-app .
    3. Run: docker run --rm -p 8080:5173 -e HOST=0.0.0.0 -e PORT=5173 my-tanstack-start-app
    4. Visit http://localhost:8080

Notes

  • Bun deployment guidance requires React 19 or newer
  • Prefer wrangler.jsonc over TOML
  • Server listens on PORT default 5173

Breaking changes

  • None

@github-actions github-actions bot added the documentation Everything documentation related label Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Everything documentation related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant