mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(reader) add reader
This commit is contained in:
7 files changed
+76
-11
No files matched your search
+4
-3
@@ -1,16 +1,17 @@
|
||||
import React from 'react';
|
||||
import fetch_posts from '@/app/blog/fetch_posts';
|
||||
import fetch_posts_list from '@/app/blog/fetch_posts_list';
|
||||
import BlogPostCard from '@/app/blog/BlogPostCard';
|
||||
|
||||
async function Blog() {
|
||||
|
||||
const res = await fetch_posts(process.env.BLOG_ENDPOINT!);
|
||||
const res = await fetch_posts_list();
|
||||
if (!res.ok) {
|
||||
console.log(res.error);
|
||||
return;
|
||||
}
|
||||
const posts = res.value;
|
||||
// console.log(posts);
|
||||
|
||||
console.log(posts);
|
||||
|
||||
return (
|
||||
|
||||
|
||||
Reference in new issue
Block a user