mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-18 14:13:30 +09:00
worked with lang subdir
This commit is contained in:
@@ -10,12 +10,12 @@ export async function getStaticPaths() {
|
||||
|
||||
const paths = await Promise.all(
|
||||
supportedLang.map(async (lang) => {
|
||||
const posts = await getSinglePage(
|
||||
const posts: any = await getSinglePage(
|
||||
BLOG_FOLDER,
|
||||
lang as keyof ContentEntryMap
|
||||
);
|
||||
|
||||
return posts.map((post) => ({
|
||||
return posts.map((post: any) => ({
|
||||
params: {
|
||||
lang: lang || undefined,
|
||||
single: post.slug.split("/").pop(),
|
||||
|
||||
Reference in New Issue
Block a user