summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/blog-query.ts
diff options
context:
space:
mode:
authorMaze <167211895+mazeincoding@users.noreply.github.com>2025-07-22 00:30:54 +0200
committerGitHub <noreply@github.com>2025-07-22 00:30:54 +0200
commit11b270ffd398ccef82b4105ca0bc87572a208d33 (patch)
tree7614894fe03fa101b9f55638ea46a22fc658aac8 /apps/web/src/lib/blog-query.ts
parentbd05f64511c90900be1a720c9d4c338a574292f5 (diff)
parent1b0dd48f3d38b3a44f796fc01744c2d827ab3278 (diff)
downloadopencut-11b270ffd398ccef82b4105ca0bc87572a208d33.tar.gz
Merge pull request #404 from mezotv/fix/blog
fix: move to next_public keys
Diffstat (limited to 'apps/web/src/lib/blog-query.ts')
-rw-r--r--apps/web/src/lib/blog-query.ts4
1 files changed, 2 insertions, 2 deletions
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<T>(endpoint: string): Promise<T> {
try {