Skip to content

adding creds to heroku config vars #1772

Answered by textual
textual asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by textual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant