-
the setup guide I used had me use a path to my config file as my environment var which works locally.
However when I push to heroku, this strategy doesn't seem to work. i attempted to add the file via heroku cli to the config var, which essentially adds the contents of the file as a json string in the config var. but the start-up of the component fails with this. whats the best approach to load up your issued credentials using heroku? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
private key needed to be unescaped, copied and pasted into heroku config vars |
Beta Was this translation helpful? Give feedback.
const pubsub = new PubSub({ projectId: process.env.GOOGLE_PROJECT, credentials: { private_key: process.env.GOOGLE_PRIVATE_KEY, client_email: process.env.GOOGLE_CLIENT_EMAIL, }, });
private key needed to be unescaped, copied and pasted into heroku config vars