diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/[locale]/news/[...slug].astro | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pages/[locale]/news/[...slug].astro b/src/pages/[locale]/news/[...slug].astro index 815387f..e3b8b36 100644 --- a/src/pages/[locale]/news/[...slug].astro +++ b/src/pages/[locale]/news/[...slug].astro @@ -19,17 +19,13 @@ export async function getStaticPaths() { } } - const paths = (await getCollection('news')).map((entry) => ({ + return (await getCollection('news')).map((entry) => ({ params: { slug: entry.slug.replace('/', '-'), locale: localeFromSlug(entry.slug), }, props: { entry }, })); - - console.info('Paths: %s', JSON.stringify(paths)); - - return paths; } const { entry } = Astro.props; |
