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
{{ message }}
Repository navigation
[v3]: Allow the server.ts entry to export other content. #3833
For example, in Cloudflare workers, when combined with workflows, Cloudflare requires exporting the implementation class of WorkerEntrypoint in the entry file. Currently, Nitro 3 does not support exporting from anywhere.
We could create a new entry file and import .output/server/index.mjs, but this has a problem: if we use the same things in the new entry file as in Nitro 3 (e.g., ORM), the code will be packaged and deployed twice.
My workaround is to allow exporting content from server.ts. After a Nitro build, this will also be exported to .output/server/index.mjs.
I'd love to help with this, but I haven't found any documentation or anything related to the Nitro plugin. Of course, I don't want to rely on AI to do it.
Additional information
Would you be willing to help implement this feature?
Activity