From fc61a294bd80b160fb55b4117703aef1b141a3a1 Mon Sep 17 00:00:00 2001 From: Jack MB Date: Wed, 22 Jan 2025 10:44:24 +0100 Subject: [PATCH] bugfix site env in artwork url function --- util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.ts b/util.ts index c888ffc..28e57bb 100644 --- a/util.ts +++ b/util.ts @@ -258,7 +258,7 @@ export const showArtworkURL = ( const baseUrl = process.env.NODE_ENV === "development" ? "https://055a-2a02-8109-b68b-5000-a93d-b89a-5989-3996.ngrok-free.app/" - : process.env.NEXT_PUBLIC_WEBSITE_URL; + : process.env.NEXT_PUBLIC_SITE_URL; // Set URL for social image const url = `${baseUrl}/api/automated-artwork?title=${title}&artists=${formattedArtists}&date=${date}&images=${images}&colour=${encodeURIComponent(