Enable splitting on Vercel

This commit is contained in:
Nikita Karamov 2023-08-30 13:32:01 +02:00
parent e2208315d4
commit 498a515f46
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
1 changed files with 3 additions and 6 deletions

View File

@ -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,