Skip to content
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

Added Bun runtime template #28

Open
wants to merge 25 commits into
base: js-template
Choose a base branch
from

Conversation

cloudcreatr
Copy link

This pull request introduces a template for using Bun as a custom server to run applications built with React Router 7. The focus is on leveraging Bun's built-in HTTP server to efficiently handle routing and server-side tasks in a React environment

The primary goal of this pull request is to provide developers with a ready-to-use example for running React Router 7 on the Bun runtime.

Files Added/Modified
Template Files: Added files to set up and configure the Bun custom server.

  • entry.server.tsx uses readablestream
  • server/app uses bun server.

Clone the repository and navigate to the new template directory.

  • run bun install
  • bun run dev or bun run build
  • bun start

brookslybrand and others added 25 commits November 25, 2024 15:20
except only typecheck for node-postgres so we don't have to spin up a
postgres instance for testing
~1.7m -> ~18s on my MBP M1 Pro
tests: typecheck, dev, build, start across all templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants