Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prerendering fails when custom serverDir and rollup.output.entryFileNames is used #2444

Closed
brandonroberts opened this issue May 15, 2024 · 0 comments · Fixed by #2461
Closed

Comments

@brandonroberts
Copy link
Contributor

brandonroberts commented May 15, 2024

Environment

Node

Reproduction

https://stackblitz.com/edit/github-kk3ajf?file=nitro.config.ts

  1. Run the StackBlitz
  2. Stop the server
  3. Run npm run build
  4. Note the prerender fails with a file not found error
  5. Comment out either the rollup.output.entryFilenames or the output.serverDir
  6. Run npm run build
  7. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant