curator
curator
Explore posts from servers
TTCTheo's Typesafe Cult
Created by curator on 7/17/2024 in #questions
secrets from env file defined in Next config defined leaking in client.
I am using Nextjs 13.4.3, I have defined variables in next config coming from env file like:
const nextConfig = {
env: {
//Google MAPS API KEY
PLACES_API_KEY: process.env.PLACES_API_KEY,
},
const nextConfig = {
env: {
//Google MAPS API KEY
PLACES_API_KEY: process.env.PLACES_API_KEY,
},
the issue is it is getting leaked in the client, what can be solution?
5 replies