mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-02-14 12:19:04 +00:00
This commit is contained in:
@ -13,7 +13,7 @@ export async function GET(
|
||||
const filePath = slug ? path.join(DATA_FOLDER, ...slug) : null;
|
||||
if (!filePath) throw new Error()
|
||||
|
||||
const content = await fs.readFile(filePath);
|
||||
const content = await fs.readFile(filePath, "utf-8");
|
||||
if (!content) throw new Error()
|
||||
|
||||
return new NextResponse(content, { status: 200 });
|
||||
|
||||
Reference in New Issue
Block a user