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:
12
node_modules/astro/dist/assets/utils/getAssetsPrefix.js
generated
vendored
Normal file
12
node_modules/astro/dist/assets/utils/getAssetsPrefix.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
function getAssetsPrefix(fileExtension, assetsPrefix) {
|
||||
if (!assetsPrefix) return "";
|
||||
if (typeof assetsPrefix === "string") return assetsPrefix;
|
||||
const dotLessFileExtension = fileExtension.slice(1);
|
||||
if (assetsPrefix[dotLessFileExtension]) {
|
||||
return assetsPrefix[dotLessFileExtension];
|
||||
}
|
||||
return assetsPrefix.fallback;
|
||||
}
|
||||
export {
|
||||
getAssetsPrefix
|
||||
};
|
Reference in New Issue
Block a user