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

feat(experimental): sew 33 implement a bun http server #381

Draft
wants to merge 74 commits into
base: main
Choose a base branch
from

Conversation

Tzal3x
Copy link
Collaborator

@Tzal3x Tzal3x commented Jan 31, 2025

Nextjs only supports a webpack bundler.

I wanted to create a small experiment and create a bun-http server portal that can benefit from the ultra fast bundling speed of bun.

Current issue: Not able to run a bundled js file.
To reproduce: cd portal/bun-server && bun run build && bun run out/index.js. 🐛


Seems to be a bun issue. I reported it here: oven-sh/bun#16941

Tzal3x added 30 commits January 28, 2025 14:52
This is better than a non-exhaustive switch statement.
Plus it follows the Open/Closed Principle - extend by
adding to map, not modifying code.

The main tradeoff is that it's slightly more abstract
than a switch statement. It becomes more valuable as
we add more variants.
asserts in typescript only log the errors,
they don't throw an exception as in other
languages.
Separates the configuration/setup files and
middleware code from the source files.
Copy link

vercel bot commented Jan 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
walrus-sites-sp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 31, 2025 4:11pm
walrus-sites-sp-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 31, 2025 4:11pm
walrus-sites-sw-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 31, 2025 4:11pm

@Tzal3x Tzal3x changed the title feat: sew 33 implement a bun http server feat(experimental): sew 33 implement a bun http server Jan 31, 2025
Base automatically changed from alextzimas/sew-25-replace-node-runtime-with-bun to main February 3, 2025 09:18
@Tzal3x Tzal3x requested a review from giac-mysten February 3, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature server-portal A label for the server-side portal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant