diff options
| author | Dominik Koch <dominik@koch-bautechnik.de> | 2025-07-21 23:50:21 +0200 |
|---|---|---|
| committer | Dominik Koch <dominik@koch-bautechnik.de> | 2025-07-21 23:50:21 +0200 |
| commit | ddf0353d92c4ae214844e085e96d1d47b3ac236d (patch) | |
| tree | bf340cc027478cf241c1c61a5958aef107aaf041 | |
| parent | 5ef6e2bc97d5b0def83f4ee78a515d2b216a6ed3 (diff) | |
| download | opencut-ddf0353d92c4ae214844e085e96d1d47b3ac236d.tar.gz | |
fix: use default marble data
| -rw-r--r-- | apps/web/src/lib/blog-query.ts | 8 |
1 files 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<T>(endpoint: string): Promise<T> { - if (!url || !key) { - throw new Error('Missing required environment variables'); - } - try { const response = await fetch(`${url}/${key}/${endpoint}`); if (!response.ok) { |
