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:
2
node_modules/astro/dist/vite-plugin-fileurl/index.d.ts
generated
vendored
Normal file
2
node_modules/astro/dist/vite-plugin-fileurl/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import type { Plugin as VitePlugin } from 'vite';
|
||||
export default function vitePluginFileURL(): VitePlugin;
|
15
node_modules/astro/dist/vite-plugin-fileurl/index.js
generated
vendored
Normal file
15
node_modules/astro/dist/vite-plugin-fileurl/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
function vitePluginFileURL() {
|
||||
return {
|
||||
name: "astro:vite-plugin-file-url",
|
||||
enforce: "pre",
|
||||
resolveId(source, importer) {
|
||||
if (source.startsWith("file://")) {
|
||||
const rest = source.slice(7);
|
||||
return this.resolve(rest, importer);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
export {
|
||||
vitePluginFileURL as default
|
||||
};
|
Reference in New Issue
Block a user