mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
chore: update Ghost API configuration to use environment variables
This commit is contained in:
@@ -2,8 +2,8 @@ import GhostContentAPI from "@tryghost/content-api";
|
|||||||
|
|
||||||
// Ghost API configuration
|
// Ghost API configuration
|
||||||
const ghostConfig = {
|
const ghostConfig = {
|
||||||
url: "http://testing-ghost-8423be-31-220-108-27.traefik.me",
|
url: process.env.GHOST_URL || "NONE",
|
||||||
key: "d8c93e7121f36a95cd60921a04",
|
key: process.env.GHOST_KEY || "NONE",
|
||||||
version: "v5.0",
|
version: "v5.0",
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -83,7 +83,6 @@ export async function getPosts(options = {}): Promise<Post[]> {
|
|||||||
include: "authors",
|
include: "authors",
|
||||||
limit: "all",
|
limit: "all",
|
||||||
})) as Post[];
|
})) as Post[];
|
||||||
console.log("Posts data from Ghost API:", JSON.stringify(result, null, 2));
|
|
||||||
return result;
|
return result;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error fetching posts:", error);
|
console.error("Error fetching posts:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user