mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
fix(build): generated entry (#12477)
This commit is contained in:
parent
80a9a5299a
commit
46f6b386b3
2 changed files with 5 additions and 1 deletions
5
.changeset/thin-cups-peel.md
Normal file
5
.changeset/thin-cups-peel.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
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/
|
|
@ -283,7 +283,6 @@ function generateSSRCode(settings: AstroSettings, adapter: AstroAdapter, middlew
|
|||
`import { renderers } from '${RENDERERS_MODULE_ID}';`,
|
||||
`import * as serverEntrypointModule from '${ADAPTER_VIRTUAL_MODULE_ID}';`,
|
||||
`import { manifest as defaultManifest } from '${SSR_MANIFEST_VIRTUAL_MODULE_ID}';`,
|
||||
edgeMiddleware ? `` : `import { onRequest as middleware } from '${middlewareId}';`,
|
||||
settings.config.experimental.serverIslands
|
||||
? `import { serverIslandMap } from '${VIRTUAL_ISLAND_MAP_ID}';`
|
||||
: '',
|
||||
|
|
Loading…
Reference in a new issue