From 9755050690733a1c0f416e24e91663614243d63c Mon Sep 17 00:00:00 2001 From: Henrique Pinto <68665921+HenriquePi@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:56:26 -0400 Subject: [PATCH] FIX Update ghostAPI.ts Fix setting of ghostURL to use user set URL instead of default Currently script prioritizes CONF_URL which is a package default. set CONTENT_API_URL to have priority to ensure user set URL has priority. --- packages/astro-ghostcms/src/api/ghostAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro-ghostcms/src/api/ghostAPI.ts b/packages/astro-ghostcms/src/api/ghostAPI.ts index 9fdfc472..4cd49224 100644 --- a/packages/astro-ghostcms/src/api/ghostAPI.ts +++ b/packages/astro-ghostcms/src/api/ghostAPI.ts @@ -16,7 +16,7 @@ const CONF_URL = config.ghostURL; // SETUP GHOST API const ghostApiKey = CONTENT_API_KEY || ""; -const ghostUrl = CONF_URL || CONTENT_API_URL || ""; +const ghostUrl = CONTENT_API_URL || CONF_URL || ""; const version = "v5.0"; const api = new TSGhostContentAPI(ghostUrl, ghostApiKey, version);