fix: move to next_public keys
This commit is contained in:
parent
8c1ea7e680
commit
b10c8536fa
|
|
@ -116,7 +116,7 @@ Before you begin, ensure you have the following installed on your system:
|
||||||
|
|
||||||
# Marble Blog
|
# Marble Blog
|
||||||
MARBLE_WORKSPACE_KEY=cm6ytuq9x0000i803v0isidst # example organization key
|
MARBLE_WORKSPACE_KEY=cm6ytuq9x0000i803v0isidst # example organization key
|
||||||
MARBLE_API_URL=https://api.marblecms.com
|
NEXT_PUBLIC_MARBLE_API_URLL=https://api.marblecms.com
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
NODE_ENV="development"
|
NODE_ENV="development"
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,4 @@ UPSTASH_REDIS_REST_TOKEN=example_token
|
||||||
|
|
||||||
# Marble Blog
|
# Marble Blog
|
||||||
MARBLE_WORKSPACE_KEY=cm6ytuq9x0000i803v0isidst # example organization key
|
MARBLE_WORKSPACE_KEY=cm6ytuq9x0000i803v0isidst # example organization key
|
||||||
MARBLE_API_URL=https://api.marblecms.com
|
NEXT_PUBLIC_MARBLE_API_URLL=https://api.marblecms.com
|
||||||
|
|
@ -6,8 +6,8 @@ import rehypeSlug from "rehype-slug";
|
||||||
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
||||||
import rehypeSanitize from "rehype-sanitize";
|
import rehypeSanitize from "rehype-sanitize";
|
||||||
|
|
||||||
const url = process.env.MARBLE_API_URL || "https://api.marblecms.com";
|
const url = process.env.NEXT_PUBLIC_MARBLE_API_URLL ?? "https://api.marblecms.com";
|
||||||
const key = process.env.MARBLE_WORKSPACE_KEY || "cm6ytuq9x0000i803v0isidst";
|
const key = process.env.MARBLE_WORKSPACE_KEY ?? "cm6ytuq9x0000i803v0isidst";
|
||||||
|
|
||||||
async function fetchFromMarble<T>(endpoint: string): Promise<T> {
|
async function fetchFromMarble<T>(endpoint: string): Promise<T> {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue