From 0430b5b23c52ac1fffa5066e5628762099d683a4 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 9 Feb 2025 18:42:46 -0800 Subject: [PATCH] Moves to tsx file Also adds correct URL for the API --- pages/api/preview/{[shortcode].ts => [shortcode].tsx} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename pages/api/preview/{[shortcode].ts => [shortcode].tsx} (90%) diff --git a/pages/api/preview/[shortcode].ts b/pages/api/preview/[shortcode].tsx similarity index 90% rename from pages/api/preview/[shortcode].ts rename to pages/api/preview/[shortcode].tsx index 12056dc1..e8ec073c 100644 --- a/pages/api/preview/[shortcode].ts +++ b/pages/api/preview/[shortcode].tsx @@ -14,7 +14,7 @@ export default async function handler( try { const response = await axios({ method: 'GET', - url: `${process.env.API_URL}/api/v1/parties/${shortcode}/preview`, + url: `${process.env.NEXT_PUBLIC_SIERO_API_URL}/parties/${shortcode}/preview`, responseType: 'arraybuffer', headers: { Accept: 'image/png',