-
Notifications
You must be signed in to change notification settings - Fork 37
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
SvelteKit demo app not working #39
Comments
I have the same problem in a "real" application, not just the demo. |
Until this has been merged, it seems a fix is to set the following env variables:
|
I've forked this repo and published my own NPM package. The fix for this issue is already merged into my fork and I plan to keep it updated. Anyone else having this issue is free to use it if you'd like: bun add @catdadcode/svelte-adapter-bun -D https://github.com/catdadcode/svelte-adapter-bun I've also added signal event handling to the fork. Previously if you ran your Svelte app in a Docker container then killing the container would take 10+ seconds before Docker would force kill it. The resulting |
Desperate to find a solution to #38 I made a clean installation of Svelte demo app using the guide on https://bun.sh/guides/ecosystem/sveltekit.
When browsing the demo app, I get a lot of the below faults.
709 | });
710 | };
711 | var get_origin = function(headers) {
712 | const protocol = protocol_header && headers.get(protocol_header) || "https";
713 |
714 | const host = headers.get(host_header);
^
TypeError: Invalid header name: ''
at get_origin (/my-app/build/index.js:714:15)
at ssr (/my-app/build/index.js:682:23)
Why do we see these faults, is Bun changing their internals or is svelte-adapter-bun out of sync with the newer version of bun?
All help, ideas, and guidance will be appreciated.
The text was updated successfully, but these errors were encountered: