Chore: Upgrade to AIK & Massive Overhaul to internal processing #78

Merged
Adammatthiesen merged 46 commits from issue-77-Chore_Upgrade_to_utilize_AIK_&_Massive_integration_overhaul into main 2024-03-07 12:08:19 +00:00
1 changed files with 7 additions and 4 deletions
Showing only changes of commit b6ba6fedc1 - Show all commits

View File

@ -32,14 +32,17 @@ export default defineIntegration({
prerender: true, prerender: true,
}); });
}; };
const sanitisedRoute = options.route
jdtjenkins commented 2024-03-07 12:07:50 +00:00 (Migrated from github.com)
Review

Guhuhuhuhu it's so beautiful 😭 It's the best fucking line in this PR hands down. I can't believe how beautiful it is!

Guhuhuhuhu it's so beautiful 😭 It's the best fucking line in this PR hands down. I can't believe how beautiful it is!
.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");