fix: move to next_public keys

This commit is contained in:
Dominik Koch 2025-07-22 00:27:23 +02:00
parent 8c1ea7e680
commit b10c8536fa
3 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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
NEXT_PUBLIC_MARBLE_API_URLL=https://api.marblecms.com

View File

@ -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<T>(endpoint: string): Promise<T> {
try {