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

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,