From e21c4674890a6f4b33d5623c19957b0741cde572 Mon Sep 17 00:00:00 2001 From: Dominik Koch Date: Mon, 21 Jul 2025 23:18:07 +0200 Subject: feat: add opencut blog --- apps/web/.env.example | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/web/.env.example') diff --git a/apps/web/.env.example b/apps/web/.env.example index d63df851..267e2cab 100644 --- a/apps/web/.env.example +++ b/apps/web/.env.example @@ -13,3 +13,7 @@ NODE_ENV=development # Redis UPSTASH_REDIS_REST_URL=http://localhost:8079 UPSTASH_REDIS_REST_TOKEN=example_token + +# Marble Blog +MARBLE_WORKSPACE_KEY=cm6ytuq9x0000i803v0isidst # example organization key +MARBLE_API_URL=https://api.marblecms.com \ No newline at end of file -- cgit v1.3.1 From b10c8536fab4bad5d60b34a29e34b94315cbefe6 Mon Sep 17 00:00:00 2001 From: Dominik Koch Date: Tue, 22 Jul 2025 00:27:23 +0200 Subject: fix: move to next_public keys --- README.md | 2 +- apps/web/.env.example | 2 +- apps/web/src/lib/blog-query.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/web/.env.example') diff --git a/README.md b/README.md index 6a6b21ab..c0111eba 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ Before you begin, ensure you have the following installed on your system: # Marble Blog MARBLE_WORKSPACE_KEY=cm6ytuq9x0000i803v0isidst # example organization key - MARBLE_API_URL=https://api.marblecms.com + NEXT_PUBLIC_MARBLE_API_URLL=https://api.marblecms.com # Development NODE_ENV="development" diff --git a/apps/web/.env.example b/apps/web/.env.example index 267e2cab..182dc5b2 100644 --- a/apps/web/.env.example +++ b/apps/web/.env.example @@ -16,4 +16,4 @@ UPSTASH_REDIS_REST_TOKEN=example_token # Marble Blog MARBLE_WORKSPACE_KEY=cm6ytuq9x0000i803v0isidst # example organization key -MARBLE_API_URL=https://api.marblecms.com \ No newline at end of file +NEXT_PUBLIC_MARBLE_API_URLL=https://api.marblecms.com \ No newline at end of file diff --git a/apps/web/src/lib/blog-query.ts b/apps/web/src/lib/blog-query.ts index f82c54fe..6ad8cb6c 100644 --- a/apps/web/src/lib/blog-query.ts +++ b/apps/web/src/lib/blog-query.ts @@ -6,8 +6,8 @@ import rehypeSlug from "rehype-slug"; import rehypeAutolinkHeadings from "rehype-autolink-headings"; import rehypeSanitize from "rehype-sanitize"; -const url = process.env.MARBLE_API_URL || "https://api.marblecms.com"; -const key = process.env.MARBLE_WORKSPACE_KEY || "cm6ytuq9x0000i803v0isidst"; +const url = process.env.NEXT_PUBLIC_MARBLE_API_URLL ?? "https://api.marblecms.com"; +const key = process.env.MARBLE_WORKSPACE_KEY ?? "cm6ytuq9x0000i803v0isidst"; async function fetchFromMarble(endpoint: string): Promise { try { -- cgit v1.3.1 From e5c8df5555a276e705b0868bbf31ca402fd6049d Mon Sep 17 00:00:00 2001 From: Dominik Koch Date: Tue, 22 Jul 2025 00:34:49 +0200 Subject: fix: typo in url --- apps/web/.env.example | 2 +- apps/web/src/lib/blog-query.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/web/.env.example') diff --git a/apps/web/.env.example b/apps/web/.env.example index 182dc5b2..b21f9a92 100644 --- a/apps/web/.env.example +++ b/apps/web/.env.example @@ -16,4 +16,4 @@ UPSTASH_REDIS_REST_TOKEN=example_token # Marble Blog MARBLE_WORKSPACE_KEY=cm6ytuq9x0000i803v0isidst # example organization key -NEXT_PUBLIC_MARBLE_API_URLL=https://api.marblecms.com \ No newline at end of file +NEXT_PUBLIC_MARBLE_API_URL=https://api.marblecms.com \ No newline at end of file diff --git a/apps/web/src/lib/blog-query.ts b/apps/web/src/lib/blog-query.ts index 6ad8cb6c..5c7c7200 100644 --- a/apps/web/src/lib/blog-query.ts +++ b/apps/web/src/lib/blog-query.ts @@ -6,7 +6,7 @@ import rehypeSlug from "rehype-slug"; import rehypeAutolinkHeadings from "rehype-autolink-headings"; import rehypeSanitize from "rehype-sanitize"; -const url = process.env.NEXT_PUBLIC_MARBLE_API_URLL ?? "https://api.marblecms.com"; +const url = process.env.NEXT_PUBLIC_MARBLE_API_URL ?? "https://api.marblecms.com"; const key = process.env.MARBLE_WORKSPACE_KEY ?? "cm6ytuq9x0000i803v0isidst"; async function fetchFromMarble(endpoint: string): Promise { -- cgit v1.3.1