From cda2ca66140c85274e929f20e8b3d1402fa53afb Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 2 Sep 2023 22:51:19 +0200 Subject: [PATCH] Try using split functions on Netlify --- astro.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index f3a1dc2..d7e85b7 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -11,7 +11,7 @@ import lightningcss from "vite-plugin-lightningcss"; import cloudflare from "@astrojs/cloudflare"; import deno from "@astrojs/deno"; -import netlify from "@astrojs/netlify"; +import netlify from "@astrojs/netlify/functions"; import node from "@astrojs/node"; import vercel from "@astrojs/vercel/serverless"; @@ -31,7 +31,9 @@ if (process.env.VERCEL) { } else if (process.env.NETLIFY) { console.info("Using Netlify (Functions) adapter..."); adapterConfig = { - adapter: netlify(), + adapter: netlify({ + functionPerRoute: true, + }), }; } else if (process.argv.includes("--s2f-use-deno")) { console.info("Using Deno adapter...");