From ddf0353d92c4ae214844e085e96d1d47b3ac236d Mon Sep 17 00:00:00 2001 From: Dominik Koch Date: Mon, 21 Jul 2025 23:50:21 +0200 Subject: [PATCH] fix: use default marble data --- apps/web/src/lib/blog-query.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/web/src/lib/blog-query.ts b/apps/web/src/lib/blog-query.ts index 55fe25ab..f82c54fe 100644 --- a/apps/web/src/lib/blog-query.ts +++ b/apps/web/src/lib/blog-query.ts @@ -6,14 +6,10 @@ import rehypeSlug from "rehype-slug"; import rehypeAutolinkHeadings from "rehype-autolink-headings"; import rehypeSanitize from "rehype-sanitize"; -const url = process.env.MARBLE_API_URL; -const key = process.env.MARBLE_WORKSPACE_KEY; +const url = process.env.MARBLE_API_URL || "https://api.marblecms.com"; +const key = process.env.MARBLE_WORKSPACE_KEY || "cm6ytuq9x0000i803v0isidst"; async function fetchFromMarble(endpoint: string): Promise { - if (!url || !key) { - throw new Error('Missing required environment variables'); - } - try { const response = await fetch(`${url}/${key}/${endpoint}`); if (!response.ok) {