Hi everyone,
I'm working on Project<X>, a web application that provides nearby beach information. Currently, we've been testing with a simple HTML/JS frontend, but we're planning to migrate to Next.js and Vercel.
Our backend is Flask (running on Docker) with SocketIO for real-time location data in order to calculate nearby distances. My frontend developer raised a concern about API key security in the Next.js implementation.
Specifically, he's saying the API key and backend link would be visible to clients when using Next.js and socketIO.
I'm reaching out to get your expert advice:
- Is this a legitimate concern with Next.js?
- What are the recommended approaches for securing API keys in this architecture?
We want to ensure we're following best practices before moving forward with the implementation.
Looking forward to your insights!