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:
parent
481c13a08c
commit
04fdc1c613
2 changed files with 6 additions and 1 deletions
5
.changeset/great-hats-drive.md
Normal file
5
.changeset/great-hats-drive.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes an issue where having a middleware prevented the SSR app from being deployed on Netlify.
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue