Chore: Upgrade to AIK
& Massive Overhaul to internal processing #78
|
@ -32,14 +32,17 @@ export default defineIntegration({
|
||||||
prerender: true,
|
prerender: true,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
const sanitisedRoute = options.route
|
||||||
|
|||||||
|
.replace(/^\//, '')
|
||||||
|
.replace(/\/$/, '');
|
||||||
|
|
||||||
makeRoute(`${options.route}`,
|
makeRoute(`${sanitisedRoute}`,
|
||||||
"index.astro");
|
"index.astro");
|
||||||
makeRoute(`${options.route}/[slug]`,
|
makeRoute(`${sanitisedRoute}/[slug]`,
|
||||||
"[slug].astro");
|
"[slug].astro");
|
||||||
makeRoute(`${options.route}/about`,
|
makeRoute(`${sanitisedRoute}/about`,
|
||||||
"about.astro");
|
"about.astro");
|
||||||
makeRoute(`${options.route}/authors`,
|
makeRoute(`${sanitisedRoute}/authors`,
|
||||||
"authors.astro");
|
"authors.astro");
|
||||||
makeRoute("rss.xml",
|
makeRoute("rss.xml",
|
||||||
"rss.xml.ts");
|
"rss.xml.ts");
|
||||||
|
|
Loading…
Reference in New Issue
Guhuhuhuhu it's so beautiful 😭 It's the best fucking line in this PR hands down. I can't believe how beautiful it is!