From 580e915780f3c42545ef92ab3cd4374bc3f316b1 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Thu, 15 Aug 2024 13:15:04 -0400 Subject: [PATCH] Update .changeset/weak-dancers-beam.md Co-authored-by: Sarah Rainsberger --- .changeset/weak-dancers-beam.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.changeset/weak-dancers-beam.md b/.changeset/weak-dancers-beam.md index 92463d049d37..6d4667815492 100644 --- a/.changeset/weak-dancers-beam.md +++ b/.changeset/weak-dancers-beam.md @@ -2,4 +2,19 @@ '@astrojs/vercel': minor --- -Deprecate the functionPerRoute option +Deprecates the `functionPerRoute` option + +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: + +```diff +import { defineConfig } from 'astro/config'; +import vercel from '@astrojs/vercel/serverless'; + +export default defineConfig({ + // ... + output: 'server', + adapter: vercel({ +- functionPerRoute: true, + }), +}); +```