Skip to content

Commit 46f6b38

Browse files
authored
fix(build): generated entry (#12477)
1 parent 80a9a52 commit 46f6b38

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/thin-cups-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Fixes an issue where the SSR build was emitting the `dist/server/entry.mjs` file with an incorrect import at the top of the file/

packages/astro/src/core/build/plugins/plugin-ssr.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ function generateSSRCode(settings: AstroSettings, adapter: AstroAdapter, middlew
283283
`import { renderers } from '${RENDERERS_MODULE_ID}';`,
284284
`import * as serverEntrypointModule from '${ADAPTER_VIRTUAL_MODULE_ID}';`,
285285
`import { manifest as defaultManifest } from '${SSR_MANIFEST_VIRTUAL_MODULE_ID}';`,
286-
edgeMiddleware ? `` : `import { onRequest as middleware } from '${middlewareId}';`,
287286
settings.config.experimental.serverIslands
288287
? `import { serverIslandMap } from '${VIRTUAL_ISLAND_MAP_ID}';`
289288
: '',

0 commit comments

Comments
 (0)