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...");
|
||||
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,
|
||||
|
||||
|
|
Reference in a new issue