0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-24 23:21:57 -05:00

fix(middleware): rename internal middleware id (#9173)

* rename internal middleware id

* add changeset
This commit is contained in:
Arsh 2023-11-23 01:43:18 +00:00 committed by GitHub
parent 481c13a08c
commit 04fdc1c613
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes an issue where having a middleware prevented the SSR app from being deployed on Netlify.

View file

@ -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 {