目前VITE_ACCESS_PASSWORD、GEMINI_API_KEY等环境变量都是直接打包到前端的,可以直接从页面源码看到。如果网址泄露出去,可能会导致apikey泄露。 <img width="275" height="81" alt="Image" src="https://github.com/user-attachments/assets/a021f458-e8e8-43bf-b06d-89e79644990d" /> <br><br> <img width="326" height="231" alt="Image" src="https://github.com/user-attachments/assets/1dda51dc-6889-4e09-9745-b732dcfd2352" /> 感觉可以通过vercel function代理一下api请求