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.
2 parents f89efb1 + 9105e09 commit 0d3c0ccCopy full SHA for 0d3c0cc
astro.config.mjs
@@ -4,13 +4,13 @@ import solidJs from '@astrojs/solid-js'
4
import node from '@astrojs/node'
5
import AstroPWA from '@vite-pwa/astro'
6
import vercel from '@astrojs/vercel/edge'
7
-import netlify from '@astrojs/netlify/edge-functions'
+import netlify from '@astrojs/netlify/functions'
8
import disableBlocks from './plugins/disableBlocks'
9
10
const envAdapter = () => {
11
switch (process.env.OUTPUT) {
12
case 'vercel': return vercel({ analytics: false }) // Set `analytics` to `true` if you want to use Vercel Analytics
13
- case 'netlify': return netlify()
+ case 'netlify': return netlify({edgeMiddleware: true})
14
default: return node({ mode: 'standalone' })
15
}
16
0 commit comments