Skip to content

Vercel adapter + prerender + build split leads to an error #7973

@raulfdm

Description

@raulfdm

What version of astro are you using?

2.10.1

Are you using an SSR adapter? If so, which one?

Vercel

What package manager are you using?

pnpm

What operating system are you using?

Mac

What browser are you using?

Doesn't matter

Describe the Bug

While trying to use Vercel adapter and build.split = true, pages with export const prerender = true throws the following error:

 prerendering static routes 
 error   Unable to find the manifest for the module file:///path/to/project/astro-vercel-build-split-prerender-error/apps/website/dist/src/pages/_lang_/entry.index.astro.mjs?time=1691298936496. This is unexpected and likely a bug in Astro, please report.
Error: Unable to find the manifest for the module file:///path/to/project/astro-vercel-build-split-prerender-error/apps/website/dist/src/pages/_lang_/entry.index.astro.mjs?time=1691298936496. This is unexpected and likely a bug in Astro, please report.

What's the expected result?

Build without error or have instructions about pre-rendered pages.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-qfges3

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P4: importantViolate documented behavior or significantly impacts performance (priority)feat: ssrRelated to SSR (scope)pkg: vercelRelated to Vercel adapter (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions