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/endpoint/config.js
generated
vendored
Normal file
12
node_modules/astro/dist/assets/endpoint/config.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
function injectImageEndpoint(settings, mode) {
|
||||
const endpointEntrypoint = settings.config.image.endpoint ?? (mode === "dev" ? "astro/assets/endpoint/node" : "astro/assets/endpoint/generic");
|
||||
settings.injectedRoutes.push({
|
||||
pattern: "/_image",
|
||||
entrypoint: endpointEntrypoint,
|
||||
prerender: false
|
||||
});
|
||||
return settings;
|
||||
}
|
||||
export {
|
||||
injectImageEndpoint
|
||||
};
|
Reference in New Issue
Block a user