Environment Variable that is a JSON object
Hi
I have been trying to load a environment variable that is a JSON object (ie to load Google Cloud Service Account).
In my
env.mjs
I added the following
but I am getting an error in the MergedOuput
type, saying that some fields are missing.
Any help would be greatly appreciated.
Thanks4 Replies
Stack Overflow
Is it possible to store a JSON file to an ENV variable with dotenv?
I am using Google Drive API with my Rails application. The API is working fine. I have the following client_secret.json file:
{
"type": "service_account",
"project_id": "gobirdie-landing-page"...
yes - i am doing that - but the MJS file is complaining about a type issue - seen in the screenshot
stringify it and store it as a string, then json parse it during load
is that not what i am doing with
preprocess
?