NITRO_HOST not working when using preset: "bun" in Nuxt #3528
Closed
wling-art
started this conversation in
Help Wanted
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using Nuxt with Nitro and setting:
preset: "bun"I noticed that
NITRO_HOSThas no effect — onlyNITRO_PORTworks.In the built
index.mjs, the Bun server is started like this:As you can see, only the
portoption is read from the environment.NITRO_HOSTis never used, so there’s no way to set a custom host — it always binds to the default.How can I enable or set a custom host (like 0.0.0.0 or 127.0.0.1) when using the Bun preset? Is there a supported way or workaround?
Beta Was this translation helpful? Give feedback.
All reactions