Fix Ghost API environment variables on server
cgen-2c85504cd7df4e2282ced88bcdff4f73
This commit is contained in:
parent
7d26b3d2b4
commit
f0f641de14
1 changed files with 2 additions and 2 deletions
|
|
@ -34,8 +34,8 @@ interface GhostApiResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchFromGhost(slug: string): Promise<any | null> {
|
async function fetchFromGhost(slug: string): Promise<any | null> {
|
||||||
const ghostUrl = process.env.VITE_GHOST_API_URL;
|
const ghostUrl = process.env.GHOST_API_URL || process.env.VITE_GHOST_API_URL;
|
||||||
const ghostKey = process.env.VITE_GHOST_CONTENT_API_KEY;
|
const ghostKey = process.env.GHOST_CONTENT_API_KEY || process.env.VITE_GHOST_CONTENT_API_KEY;
|
||||||
|
|
||||||
if (!ghostUrl || !ghostKey) {
|
if (!ghostUrl || !ghostKey) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue