mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
9 lines
259 B
TypeScript
9 lines
259 B
TypeScript
const baseUrl = 'https://blog-backend-beige-pi.vercel.app/';
|
|
|
|
/**
|
|
* Read post meta info from backend
|
|
*/
|
|
const readFileMate = async (filename: string) => {
|
|
const target = `${baseUrl}/${filename}.mdx`;
|
|
const result = await (await fetch(target)).text();
|
|
}; |