Where should I put the API keys of discourse so that I can fetch the posts?

I’m doing it in nextJS. Where should I put that code?