We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4041988 commit 35ce4a7Copy full SHA for 35ce4a7
astro.config.mjs
@@ -2,10 +2,12 @@
2
import { defineConfig } from 'astro/config'
3
4
import vercel from '@astrojs/vercel/serverless'
5
-import netlify from '@astrojs/netlify'
+import netlify from '@astrojs/netlify/functions'
6
7
// https://astro.build/config
8
export default defineConfig({
9
output: 'server',
10
- adapter: process.env.NETLIFY ? netlify() : vercel({ maxDuration: 300 }),
+ adapter: process.env.NETLIFY
11
+ ? netlify({ edgeMiddleware: false })
12
+ : vercel({ maxDuration: 300 }),
13
})
0 commit comments