This commit is contained in:
Benjamin Toby
2025-07-25 19:21:17 +01:00
parent aceddf5146
commit 6d833c7d3b
11 changed files with 88 additions and 40 deletions
+10
View File
@@ -27,6 +27,9 @@ export const getStaticProps: GetStaticProps<PagePropsType> = async (ctx) => {
slug: {
value: ctx.params?.slug,
},
published: {
value: "1",
},
},
},
});
@@ -68,6 +71,13 @@ export const getStaticPaths: GetStaticPaths = async (ctx) => {
await datasquirel.crud<DSQL_TBENME_BLOG_POSTS>({
action: "get",
table: "blog_posts",
query: {
query: {
published: {
value: "1",
},
},
},
});
const blogPosts = blogPostRes.payload;