You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This option is now deprecated, and will be removed entirely in Astro v5.0. We suggest removing this option from your configuration as soon as you are able to:
/** Whether to create the Vercel Edge middleware from an Astro middleware in your code base. */
135
135
edgeMiddleware?: boolean;
136
136
137
-
/** Whether to split builds into a separate function for each route. */
137
+
/**
138
+
* Whether to split builds into a separate function for each route.
139
+
* @deprecated `functionPerRoute` is deprecated and will be removed in the next major release of the adapter.
140
+
*/
138
141
functionPerRoute?: boolean;
139
142
140
143
/** The maximum duration (in seconds) that Serverless Functions can run before timing out. See the [Vercel documentation](https://vercel.com/docs/functions/serverless-functions/runtimes#maxduration) for the default and maximum limit for your account plan. */
@@ -286,6 +289,11 @@ export default function vercelServerless({
286
289
`\tMake sure to check your plan carefully to avoid incurring additional costs.\n`+
287
290
`\tYou can set functionPerRoute: false to prevent surpassing the limit.\n`,
288
291
);
292
+
293
+
logger.warn(
294
+
`\n`+
295
+
`\t\`functionPerRoute\` is deprecated and will be removed in a future version of the adapter.\n`,
0 commit comments