nitro
nitro copied to clipboard
Prerendering fails when custom serverDir and rollup.output.entryFileNames is used
Environment
Node
Reproduction
https://stackblitz.com/edit/github-kk3ajf?file=nitro.config.ts
- Run the StackBlitz
- Stop the server
- Run npm run build
- Note the prerender fails with a file not found error
- Comment out either the rollup.output.entryFilenames or the output.serverDir
- Run npm run build
- Note the prerender finishes successfully
Describe the bug
The prerenderer looks for an index.mjs when there is a custom entryFilenames set to a custom filename, such as server.mjs
Additional context
No response
Logs
No response