From 4bebc99992714ec9539fad21846a6127815ef84d Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Fri, 28 Feb 2025 01:54:27 -0600 Subject: [PATCH] chore: update Ghost API configuration to use environment variables --- apps/website/lib/ghost.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/website/lib/ghost.ts b/apps/website/lib/ghost.ts index 4b71f5f..35eca37 100644 --- a/apps/website/lib/ghost.ts +++ b/apps/website/lib/ghost.ts @@ -2,8 +2,8 @@ import GhostContentAPI from "@tryghost/content-api"; // Ghost API configuration const ghostConfig = { - url: "http://testing-ghost-8423be-31-220-108-27.traefik.me", - key: "d8c93e7121f36a95cd60921a04", + url: process.env.GHOST_URL || "NONE", + key: process.env.GHOST_KEY || "NONE", version: "v5.0", }; @@ -83,7 +83,6 @@ export async function getPosts(options = {}): Promise { include: "authors", limit: "all", })) as Post[]; - console.log("Posts data from Ghost API:", JSON.stringify(result, null, 2)); return result; } catch (error) { console.error("Error fetching posts:", error);