Skip to content

Commit 35ce4a7

Browse files
committed
update
1 parent 4041988 commit 35ce4a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

astro.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
import { defineConfig } from 'astro/config'
33

44
import vercel from '@astrojs/vercel/serverless'
5-
import netlify from '@astrojs/netlify'
5+
import netlify from '@astrojs/netlify/functions'
66

77
// https://astro.build/config
88
export default defineConfig({
99
output: 'server',
10-
adapter: process.env.NETLIFY ? netlify() : vercel({ maxDuration: 300 }),
10+
adapter: process.env.NETLIFY
11+
? netlify({ edgeMiddleware: false })
12+
: vercel({ maxDuration: 300 }),
1113
})

0 commit comments

Comments
 (0)