mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix blog build when marble cms isn't available
This commit is contained in:
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
|
||||
};
|
||||
|
||||
export default async function BlogPage() {
|
||||
const data = await getPosts();
|
||||
const data = await getPosts().catch(() => null);
|
||||
if (!data || !data.posts) return <div>No posts yet</div>;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user