This commit is contained in:
Jordi Enric
2024-03-10 16:10:19 +01:00
parent 3005903885
commit b48d3bb72d
2 changed files with 5 additions and 21 deletions
-21
View File
@@ -1,21 +0,0 @@
import React from "react";
import { createClient } from "zenblog";
type Props = {};
const index = async (props: Props) => {
const cms = createClient({
blogId: "673a21e5-145f-4c7f-815d-5627ac681f8e",
_url: `${process.env.NEXT_PUBLIC_API_URL}/public`,
});
const posts = await cms.posts.getAll();
return (
<div>
<pre>{JSON.stringify(posts, null, 2)}</pre>
</div>
);
};
export default index;
+5
View File
@@ -29,6 +29,11 @@
## Blogs
- Integration guide
- [] instruct users to keep the blog id private.
- [] allow users to rotate the blog id?
- [] Recommend users to cache content
- [x] Create blog
- [x] Edit blog
- [x] Delete blog