worked with lang subdir

This commit is contained in:
Al Murad Uzzaman
2024-05-19 17:40:46 +06:00
parent e2338efc6b
commit 340500efcc
10 changed files with 145 additions and 85 deletions
+2 -2
View File
@@ -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(),