mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
fix: pass server island route to astro:build:done routes (#12907)
This commit is contained in:
parent
2d89492d73
commit
dbf1275987
2 changed files with 8 additions and 1 deletions
5
.changeset/metal-phones-cross.md
Normal file
5
.changeset/metal-phones-cross.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes a regression around the server islands route, which was not passed to the adapters `astro:build:done` hook
|
|
@ -29,6 +29,7 @@ import { collectPagesData } from './page-data.js';
|
|||
import { staticBuild, viteBuild } from './static-build.js';
|
||||
import type { StaticBuildOptions } from './types.js';
|
||||
import { getTimeStat } from './util.js';
|
||||
import { getServerIslandRouteData } from '../server-islands/endpoint.js';
|
||||
|
||||
export interface BuildOptions {
|
||||
/**
|
||||
|
@ -232,7 +233,8 @@ class AstroBuilder {
|
|||
pages: pageNames,
|
||||
routes: Object.values(allPages)
|
||||
.flat()
|
||||
.map((pageData) => pageData.route),
|
||||
.map((pageData) => pageData.route)
|
||||
.concat(hasServerIslands ? getServerIslandRouteData(this.settings.config) : []),
|
||||
logging: this.logger,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue