You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
📋 Description of content that is out-of-date or incorrect
Hi,
On this page https://docs.solidjs.com/solid-start/reference/config/define-config of the solidstart documentation, we can see how to setup an alternative server runtime instead of Node.js , like Deno, because it is supported by Nitro (if I do understand well ?), by looking at the Nitro's documentation, I can see that it also support Bun.js as a runtime (https://nitro.build/deploy/runtimes/bun), with the preset "bun". After having a look to the SolidStart's code, if I'm not mistaking, I do not see specific configuration to enable the preset "deno_server", so I guess that with the "bun" preset, it should work too, with very little effort, like:
Even if I tried with the basic project example bellow of a page with a button which call a server function to create a local file with Bun.js method Bun.write("./newfile.txt", "Hello Bun.js"); , and it did not worked (Error: "Bun is not defined"), maybe I missing something within the config of project.
I'm sharing the repo bellow:
Thanks a lot for your feedback.
And if you can help me out to make this configuration work, I'll make PR to complete SolidStart's repo examples with great Bunjs' features within SolidStart.
Best
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
📚 Subject area/topic
/solid-start/reference/config/define-config.mdx
📋 Page(s) affected (or suggested, for new content)
https://docs.solidjs.com/solid-start/reference/config/define-config
📋 Description of content that is out-of-date or incorrect
Hi,
On this page https://docs.solidjs.com/solid-start/reference/config/define-config of the solidstart documentation, we can see how to setup an alternative server runtime instead of Node.js , like Deno, because it is supported by Nitro (if I do understand well ?), by looking at the Nitro's documentation, I can see that it also support Bun.js as a runtime (https://nitro.build/deploy/runtimes/bun), with the preset "bun". After having a look to the SolidStart's code, if I'm not mistaking, I do not see specific configuration to enable the preset "deno_server", so I guess that with the "bun" preset, it should work too, with very little effort, like:
Even if I tried with the basic project example bellow of a page with a button which call a server function to create a local file with Bun.js method
Bun.write("./newfile.txt", "Hello Bun.js");
, and it did not worked (Error: "Bun is not defined"), maybe I missing something within the config of project.I'm sharing the repo bellow:
Thanks a lot for your feedback.
And if you can help me out to make this configuration work, I'll make PR to complete SolidStart's repo examples with great Bunjs' features within SolidStart.
Best
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
Here the basic repo to try it out: https://github.com/TLevesque/solidstart-bunjs/tree/main
The text was updated successfully, but these errors were encountered: