From 498a515f468811b9ac75694699f0fa41ebb7562e Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Wed, 30 Aug 2023 13:32:01 +0200 Subject: [PATCH] Enable splitting on Vercel --- astro.config.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index c126077..d6aa489 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -13,6 +13,9 @@ if (process.env.VERCEL) { console.info("Using Vercel (serverless) adapter..."); adapterConfig = { adapter: vercel(), + build: { + split: true, + }, }; } else if (process.env.CF_PAGES) { console.info("Using Cloudflare adapter..."); @@ -41,12 +44,6 @@ if (process.env.VERCEL) { export default defineConfig({ site: "https://s2f.kytta.dev", - redirects: { - "/api/toot": { - destination: "/api/share", - status: 308, - }, - }, compressHTML: true,