Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
18
node_modules/astro/dist/virtual-modules/container.js
generated
vendored
Normal file
18
node_modules/astro/dist/virtual-modules/container.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
async function loadRenderers(renderers) {
|
||||
const loadedRenderers = await Promise.all(
|
||||
renderers.map(async (renderer) => {
|
||||
const mod = await import(renderer.serverEntrypoint);
|
||||
if (typeof mod.default !== "undefined") {
|
||||
return {
|
||||
...renderer,
|
||||
ssr: mod.default
|
||||
};
|
||||
}
|
||||
return void 0;
|
||||
})
|
||||
);
|
||||
return loadedRenderers.filter((r) => Boolean(r));
|
||||
}
|
||||
export {
|
||||
loadRenderers
|
||||
};
|
Reference in New Issue
Block a user