diff --git a/packages/website/src/pages/[...locale]/api/index.astro b/packages/website/src/pages/[...locale]/api/index.astro index f06dd47d6..4121c73cb 100644 --- a/packages/website/src/pages/[...locale]/api/index.astro +++ b/packages/website/src/pages/[...locale]/api/index.astro @@ -48,15 +48,14 @@ const globRaw = import.meta.glob('/src/pages/api/**/*.ts', { }) as Record; const globStaticPaths = import.meta.glob('/src/pages/api/**/*.ts', { eager: true, - import: 'getStaticPaths', -}) as Record; +}) as Record; let apis: APIPath[] = []; for (const rawPath in globRaw) { const content = globRaw[rawPath].replaceAll('\r', ''); const regexExecution = content.match(getDocsRegex); const commentRaw = regexExecution?.[1]; - const getStaticPaths = globStaticPaths[rawPath]; + const { getStaticPaths } = globStaticPaths[rawPath]; let slugs: APIPath['slugs'] | undefined; if (getStaticPaths) {