mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-24 20:00:37 +00:00
🌟 Code Cleanup
This commit is contained in:
@@ -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.` })
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"pages/_document.tsx"
|
||||
"pages/_document.js"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
|
||||
Reference in New Issue
Block a user