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:
21
node_modules/astro/dist/vite-plugin-astro/metadata.js
generated
vendored
Normal file
21
node_modules/astro/dist/vite-plugin-astro/metadata.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
function getAstroMetadata(modInfo) {
|
||||
if (modInfo.meta?.astro) {
|
||||
return modInfo.meta.astro;
|
||||
}
|
||||
return void 0;
|
||||
}
|
||||
function createDefaultAstroMetadata() {
|
||||
return {
|
||||
hydratedComponents: [],
|
||||
clientOnlyComponents: [],
|
||||
serverComponents: [],
|
||||
scripts: [],
|
||||
propagation: "none",
|
||||
containsHead: false,
|
||||
pageOptions: {}
|
||||
};
|
||||
}
|
||||
export {
|
||||
createDefaultAstroMetadata,
|
||||
getAstroMetadata
|
||||
};
|
Reference in New Issue
Block a user