Skip to content

Commit af53510

Browse files
committed
remove dead code
1 parent b8732aa commit af53510

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/pages/[locale]/[slug].astro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ export const getStaticPaths = async () => {
1414
return pages.map((page) => {
1515
const slug = removeLocalePrefix(page.slug);
1616
17-
// don't generate "index" pages, those are handled by ./index.astro
18-
if (slug === "/") return null;
19-
2017
// if slug has / at the beginning (and will if we only remove
2118
// the locale prefix) then chop it off
2219
// this is necessary because this file is [slug].astro and

src/pages/[slug].astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ export const getStaticPaths = async () => {
88
return pages
99
.map((page) => {
1010
const slug = removeLocalePrefix(page.slug);
11-
// don't generate "index" pages, those are handled by ./index.astro
12-
if (slug === "/") return null;
1311
1412
// if slug has / at the beginning (and will if we only remove
1513
// the locale prefix) then chop it off

0 commit comments

Comments
 (0)