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:
16
node_modules/astro/dist/vite-plugin-html/index.js
generated
vendored
Normal file
16
node_modules/astro/dist/vite-plugin-html/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { transform } from "./transform/index.js";
|
||||
function html() {
|
||||
return {
|
||||
name: "astro:html",
|
||||
options(options) {
|
||||
options.plugins = options.plugins?.filter((p) => p.name !== "vite:build-html");
|
||||
},
|
||||
async transform(source, id) {
|
||||
if (!id.endsWith(".html")) return;
|
||||
return await transform(source, id);
|
||||
}
|
||||
};
|
||||
}
|
||||
export {
|
||||
html as default
|
||||
};
|
Reference in New Issue
Block a user