Try using split functions on Netlify

This commit is contained in:
Nikita Karamov 2023-09-02 22:51:19 +02:00
parent 88fb903120
commit cda2ca6614
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD

View file

@ -11,7 +11,7 @@ import lightningcss from "vite-plugin-lightningcss";
import cloudflare from "@astrojs/cloudflare"; import cloudflare from "@astrojs/cloudflare";
import deno from "@astrojs/deno"; import deno from "@astrojs/deno";
import netlify from "@astrojs/netlify"; import netlify from "@astrojs/netlify/functions";
import node from "@astrojs/node"; import node from "@astrojs/node";
import vercel from "@astrojs/vercel/serverless"; import vercel from "@astrojs/vercel/serverless";
@ -31,7 +31,9 @@ if (process.env.VERCEL) {
} else if (process.env.NETLIFY) { } else if (process.env.NETLIFY) {
console.info("Using Netlify (Functions) adapter..."); console.info("Using Netlify (Functions) adapter...");
adapterConfig = { adapterConfig = {
adapter: netlify(), adapter: netlify({
functionPerRoute: true,
}),
}; };
} else if (process.argv.includes("--s2f-use-deno")) { } else if (process.argv.includes("--s2f-use-deno")) {
console.info("Using Deno adapter..."); console.info("Using Deno adapter...");