52f0837bde
* Vercel adapter default changes * Update .changeset/silly-dolphins-try.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Fix tests * chore: correctly export `pageModule` when using `functionPerRoute` * Update .changeset/silly-dolphins-try.md Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update .changeset/silly-dolphins-try.md Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Make throw be the entrypoint --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
9 lines
394 B
Markdown
9 lines
394 B
Markdown
---
|
|
'@astrojs/vercel': major
|
|
---
|
|
|
|
Vercel adapter now defaults to `functionPerRoute`.
|
|
|
|
With this change, `@astrojs/vercel/serverless` now splits each route into its own function. By doing this, the size of each function is reduced and startup time is faster.
|
|
|
|
You can disable this option, which will cause the code to be bundled into a single function, by setting `functionPerRoute` to `false`.
|