fix the constants of ENV

This commit is contained in:
Yifei Hu 2024-07-12 15:21:29 +08:00
parent 1ac51ee7a4
commit 52fd0b2e80
2 changed files with 2 additions and 4 deletions

View file

@ -13,8 +13,6 @@ export async function GET(request: Request, { params }: { params: { id: string }
const fileContents = await fs.readFile(filePath, "utf8");
const newsData = JSON.parse(fileContents);
// You could use VALIDATED_ENV.API_URL here if you needed to make any external API calls
return NextResponse.json(newsData);
} catch (error) {
console.error("Error reading news data:", error);