diff --git a/src/routeMap.tsx b/src/routeMap.tsx index 94987dd..7d67b8d 100644 --- a/src/routeMap.tsx +++ b/src/routeMap.tsx @@ -1,5 +1,6 @@ import AboutSite from "~/about/AboutSite"; import App from "~/app"; +import Article from "~/Article"; import BlogIndex from "~/BlogIndex"; import GallerySite from "~/GallerySite"; @@ -8,4 +9,5 @@ export const routeMap: Record = { "/": [BlogIndex], "/gallery": [GallerySite], "/about": [AboutSite], + "/articles/*": [Article], } as any; diff --git a/vite/SSR/SSRPreloadDev.tsx b/vite/SSR/SSRPreloadDev.tsx index e38187b..4f11965 100644 --- a/vite/SSR/SSRPreloadDev.tsx +++ b/vite/SSR/SSRPreloadDev.tsx @@ -51,6 +51,12 @@ const collectRec = ( visited.add(node.id); const imports = [...node.clientImportedModules.values()]; + // if (!node.id.includes("node_modules")) + // console.log( + // "dep", + // node.id, + // imports.map((x) => x.file) + // ); if (!ignorePatterns.some((pattern) => pattern.test(node.id!))) { for (const dep of imports) {