From 094bc7e6523aa77d94c8556dbdaa75a526684d7a Mon Sep 17 00:00:00 2001 From: Schorsch Date: Fri, 9 Feb 2024 01:24:27 +0800 Subject: [PATCH 1/2] Update astro.config.mjs test --- astro.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 9b96ab4d..a0bbc4d7 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,13 +4,13 @@ import solidJs from '@astrojs/solid-js' import node from '@astrojs/node' import AstroPWA from '@vite-pwa/astro' import vercel from '@astrojs/vercel/edge' -import netlify from '@astrojs/netlify/edge-functions' +import netlify from "@astrojs/netlify/functions"; import disableBlocks from './plugins/disableBlocks' const envAdapter = () => { switch (process.env.OUTPUT) { case 'vercel': return vercel({ analytics: false }) // Set `analytics` to `true` if you want to use Vercel Analytics - case 'netlify': return netlify() + case 'netlify': return netlify({edgeMiddleware: true}) default: return node({ mode: 'standalone' }) } } From 9105e096fde478fab9a509ba1372f0b93390993b Mon Sep 17 00:00:00 2001 From: Diu Date: Tue, 12 Mar 2024 13:01:47 +0800 Subject: [PATCH 2/2] chore: code style in `astro.config.mjs` --- astro.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index a0bbc4d7..5cc3b8b8 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,7 +4,7 @@ import solidJs from '@astrojs/solid-js' import node from '@astrojs/node' import AstroPWA from '@vite-pwa/astro' import vercel from '@astrojs/vercel/edge' -import netlify from "@astrojs/netlify/functions"; +import netlify from '@astrojs/netlify/functions' import disableBlocks from './plugins/disableBlocks' const envAdapter = () => {