File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments