Moves to tsx file

Also adds correct URL for the API
This commit is contained in:
Justin Edmund 2025-02-09 18:42:46 -08:00
parent bf22a4e477
commit 0430b5b23c

View file

@ -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',