Skip to content

Commit 0d3c0cc

Browse files
authored
Merge pull request #141 from XiangChen888/main
Fix: Deployment to Netlify Bug
2 parents f89efb1 + 9105e09 commit 0d3c0cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import solidJs from '@astrojs/solid-js'
44
import node from '@astrojs/node'
55
import AstroPWA from '@vite-pwa/astro'
66
import vercel from '@astrojs/vercel/edge'
7-
import netlify from '@astrojs/netlify/edge-functions'
7+
import netlify from '@astrojs/netlify/functions'
88
import disableBlocks from './plugins/disableBlocks'
99

1010
const envAdapter = () => {
1111
switch (process.env.OUTPUT) {
1212
case 'vercel': return vercel({ analytics: false }) // Set `analytics` to `true` if you want to use Vercel Analytics
13-
case 'netlify': return netlify()
13+
case 'netlify': return netlify({edgeMiddleware: true})
1414
default: return node({ mode: 'standalone' })
1515
}
1616
}

0 commit comments

Comments
 (0)