Conversation
✅ Deploy Preview for nuxt3-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
| process.env.NUXT_VITE_SERVER_BASE = ctx.ssrServer.config.base || '/_nuxt/' | ||
| process.env.NUXT_VITE_SERVER_ROOT = ctx.nuxt.options.rootDir | ||
|
|
||
| await fse.copyFile( |
There was a problem hiding this comment.
Since we are not depending on template anymore, can we avoid copy and directly use runtime/server.mjs as entrypoint?
There was a problem hiding this comment.
I'd love to, but how could we do that?
There was a problem hiding this comment.
Hmm actually we can update via nitro options but seems little hacky with legacy support of webpack.
What about generating something minimal like this inside entry:
export { default } from `path/runtime/server.mjs`Suggestion: would be nice to also rename server.mjs to vite-node.mjs for clarity.
There was a problem hiding this comment.
Oh since it will write client.manifest.mjs, maybe it's better to do that after #3969? Otherwise, it writes the file to the runtime folder
Did it in 0ee2d81 (#3968)
🔗 Linked issue
nuxt/nuxt#13466
❓ Type of change
📚 Description
📝 Checklist