full site update
This commit is contained in:
11
node_modules/astro/dist/container/pipeline.js
generated
vendored
11
node_modules/astro/dist/container/pipeline.js
generated
vendored
@@ -56,7 +56,8 @@ class ContainerPipeline extends Pipeline {
|
||||
routes: this.manifest?.routes.map((r) => r.routeData),
|
||||
trailingSlash: this.manifest.trailingSlash,
|
||||
buildFormat: this.manifest.buildFormat,
|
||||
base: this.manifest.base
|
||||
base: this.manifest.base,
|
||||
outDir: this.manifest.outDir
|
||||
});
|
||||
const componentInstance = await this.getComponentByRoute(routeData);
|
||||
return { componentInstance, routeData, newUrl, pathname };
|
||||
@@ -71,8 +72,12 @@ class ContainerPipeline extends Pipeline {
|
||||
});
|
||||
}
|
||||
// At the moment it's not used by the container via any public API
|
||||
// @ts-expect-error It needs to be implemented.
|
||||
async getComponentByRoute(_routeData) {
|
||||
async getComponentByRoute(routeData) {
|
||||
const page = this.#componentsInterner.get(routeData);
|
||||
if (page) {
|
||||
return page.page();
|
||||
}
|
||||
throw new Error("Couldn't find component for route " + routeData.pathname);
|
||||
}
|
||||
}
|
||||
export {
|
||||
|
Reference in New Issue
Block a user