Skip to content

Commit

Permalink
bugfix site env in artwork url function
Browse files Browse the repository at this point in the history
  • Loading branch information
antiantivirus committed Jan 22, 2025
1 parent 0fb58f4 commit fc61a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fc61a29

Please sign in to comment.