Moves to tsx file
Also adds correct URL for the API
This commit is contained in:
parent
bf22a4e477
commit
0430b5b23c
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ export default async function handler(
|
||||||
try {
|
try {
|
||||||
const response = await axios({
|
const response = await axios({
|
||||||
method: 'GET',
|
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',
|
responseType: 'arraybuffer',
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'image/png',
|
Accept: 'image/png',
|
||||||
Loading…
Reference in a new issue