Can someone explain the difference between the process.env
and the runtimeConfig
? In my eyes, they are the same and both can be accessed in the API and the other files. but if I wasn't to use runtimeConfig
I have to do extra work for the same thing or I'm not understanding something.
In my server/api/vimeo folder I have a file where I connect to the vimeo API, and I have "
const client = new Vimeo(process.env.VIMEO_CLIENT_ID, process.env.VIMEO_CLIENT_SECRET, process.env.VIMEO_ACCESS_TOKEN)
in my head it would seem to be the same thing if I use process.env.VIMEO_CLIENT_ID
and runtimeConfig.VIMEO_CLIENT_ID
?