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:
becarta
2025-05-23 12:43:00 +02:00
parent f40db0f5c9
commit a544759a3b
11127 changed files with 1647032 additions and 0 deletions

42
node_modules/astro/dist/i18n/vite-plugin-i18n.js generated vendored Normal file
View File

@@ -0,0 +1,42 @@
import { AstroError } from "../core/errors/errors.js";
import { AstroErrorData } from "../core/errors/index.js";
const virtualModuleId = "astro:i18n";
function astroInternationalization({
settings
}) {
const {
base,
build: { format },
i18n,
site,
trailingSlash
} = settings.config;
return {
name: "astro:i18n",
enforce: "pre",
config(_config, { command }) {
const i18nConfig = {
base,
format,
site,
trailingSlash,
i18n,
isBuild: command === "build"
};
return {
define: {
__ASTRO_INTERNAL_I18N_CONFIG__: JSON.stringify(i18nConfig)
}
};
},
resolveId(id) {
if (id === virtualModuleId) {
if (i18n === void 0) throw new AstroError(AstroErrorData.i18nNotEnabled);
return this.resolve("astro/virtual-modules/i18n.js");
}
}
};
}
export {
astroInternationalization as default
};