Next.js Discord

Discord Forum

Statically generate API route from JSON file data

Unanswered
Little yellow ant posted this in #help-forum
Open in Discord
Little yellow antOP
Hello, I'm working on API routes that server JSON data that never changes. I wanted to statically generate this because it would be resource intensive to filter out the data that an endpoint should send from the JSON file, but I can't get it to work statically. I also use next-intl to translate some part of the values in the JSON

0 Replies