diff --git a/pages/api/[...id].ts b/pages/api/[...id].ts index 4772321..b408e5d 100644 --- a/pages/api/[...id].ts +++ b/pages/api/[...id].ts @@ -25,7 +25,7 @@ export default async function handler( res.setHeader("content-security-policy", "default-src 'none'; img-src * data:; style-src 'unsafe-inline'"); try { - lanyardData = (await axios.get(`https://api.lanyard.rest/v1/users/${userid}`)).data; + lanyardData = await axios.get(`https://api.lanyard.rest/v1/users/${userid}`); } catch (e) { console.log(e) res.send({ error: `Something went wrong! If everything looks correct and this still occurs, please contact @cnraddd on Twitter.` }) diff --git a/tsconfig.json b/tsconfig.json index fefbdbf..fd21301 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,7 +22,7 @@ "next-env.d.ts", "**/*.ts", "**/*.tsx", - "pages/_document.tsx" + "pages/_document.js" ], "exclude": [ "node_modules"