Enable splitting on Vercel
This commit is contained in:
parent
e2208315d4
commit
498a515f46
1 changed files with 3 additions and 6 deletions
|
@ -13,6 +13,9 @@ if (process.env.VERCEL) {
|
||||||
console.info("Using Vercel (serverless) adapter...");
|
console.info("Using Vercel (serverless) adapter...");
|
||||||
adapterConfig = {
|
adapterConfig = {
|
||||||
adapter: vercel(),
|
adapter: vercel(),
|
||||||
|
build: {
|
||||||
|
split: true,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
} else if (process.env.CF_PAGES) {
|
} else if (process.env.CF_PAGES) {
|
||||||
console.info("Using Cloudflare adapter...");
|
console.info("Using Cloudflare adapter...");
|
||||||
|
@ -41,12 +44,6 @@ if (process.env.VERCEL) {
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: "https://s2f.kytta.dev",
|
site: "https://s2f.kytta.dev",
|
||||||
redirects: {
|
|
||||||
"/api/toot": {
|
|
||||||
destination: "/api/share",
|
|
||||||
status: 308,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
compressHTML: true,
|
compressHTML: true,
|
||||||
|
|
||||||
|
|
Reference in a new issue