-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Description
here is my code, works locally but gives 403 error in production
export const getMarkdownFromArticle = async (url: string) => {
console.log(url, "url");
try {
const res = await axios.get(`https://md.dhr.wtf/?url=${url}`, {
headers: {
"Content-Type": "application/json",
},
});
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
return res.data[0].md as string;
} catch (e) {
// console.error(e.message);
throw new Error("Failed to fetch markdown from article");
}
};
Metadata
Metadata
Assignees
Labels
No labels