fix the constants of ENV
This commit is contained in:
parent
1ac51ee7a4
commit
52fd0b2e80
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue