Skip to content

Commit

Permalink
Changeset and suggestion of functionPerRoute: false
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Aug 31, 2023
1 parent 4666439 commit 82624a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nine-terms-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---

Update verbiage of Vercel warning
3 changes: 2 additions & 1 deletion packages/integrations/vercel/src/serverless/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ export default function vercelServerless({
if (functionPerRoute === true) {
logger.warn(
`Vercel's hosting plans might have limits to the number of functions you can create.
Make sure to check your plan carefully to avoid incurring additional costs.`
Make sure to check your plan carefully to avoid incurring additional costs.
You can set functionPerRoute: false to prevent surpassing the limit.`
);
}
setAdapter(getAdapter({ functionPerRoute, edgeMiddleware }));
Expand Down

0 comments on commit 82624a6

Please sign in to comment.