mirror of
https://github.com/NickKaramoff/toot
synced 2025-01-31 01:27:28 +01:00
Enable splitting on Vercel
This commit is contained in:
parent
e2208315d4
commit
498a515f46
@ -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,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user