diff options
-rw-r--r-- | .changeset/great-hats-drive.md | 5 | ||||
-rw-r--r-- | packages/astro/src/core/middleware/vite-plugin.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/great-hats-drive.md b/.changeset/great-hats-drive.md new file mode 100644 index 000000000..75bcd2581 --- /dev/null +++ b/.changeset/great-hats-drive.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes an issue where having a middleware prevented the SSR app from being deployed on Netlify. diff --git a/packages/astro/src/core/middleware/vite-plugin.ts b/packages/astro/src/core/middleware/vite-plugin.ts index 044713491..918c7c952 100644 --- a/packages/astro/src/core/middleware/vite-plugin.ts +++ b/packages/astro/src/core/middleware/vite-plugin.ts @@ -7,7 +7,7 @@ import type { BuildInternals } from '../build/internal.js'; import type { StaticBuildOptions } from '../build/types.js'; import { MIDDLEWARE_PATH_SEGMENT_NAME } from '../constants.js'; -export const MIDDLEWARE_MODULE_ID = '@astro-middleware'; +export const MIDDLEWARE_MODULE_ID = '\0astro-internal:middleware'; const EMPTY_MIDDLEWARE = '\0empty-middleware'; export function vitePluginMiddleware({ settings }: { settings: AstroSettings }): VitePlugin { |