The open-source CapCut alternative
fix: move to next_public keys
Dominik Kochb10c8536fab4
diff --git a/README.md b/README.mdindex 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 BlogMARBLE_WORKSPACE_KEY=cm6ytuq9x0000i803v0isidst # example organization key- MARBLE_API_URL=https://api.marblecms.com+ NEXT_PUBLIC_MARBLE_API_URLL=https://api.marblecms.com# DevelopmentNODE_ENV="development"diff --git a/apps/web/.env.example b/apps/web/.env.exampleindex 267e2cab..182dc5b2 100644--- a/apps/web/.env.example+++ b/apps/web/.env.example@@ -16,4 +16,4 @@ UPSTASH_REDIS_REST_TOKEN=example_token# Marble BlogMARBLE_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 filediff --git a/apps/web/src/lib/blog-query.ts b/apps/web/src/lib/blog-query.tsindex 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<T>(endpoint: string): Promise<T> {try {