Try to search your question here, if you can't find : Ask Any Question Now ?

Is there a way to use both test keys localhost and live keys remote with firebase functions

HomeCategory: stackoverflowIs there a way to use both test keys localhost and live keys remote with firebase functions
kundan asked 4 days ago

I have a project were I set up keys as such.

Live keys

  functions:config:set stripe.secret="sk_live_..." stripe.publishable="pk_live_..."

Test keys

 functions:config:set stripe.secret="sk_test_..." stripe.publishable="pk_test_..."

The application is in its beta stage but live. So there’s a lot more changes still done in code.
So I want to avoid setting the keys each time I want to test out some new feature on localhost.

Is there a way to configure firebase functions, to correspond to different Environments?

When on localhost, it should validate with test keys and with on remote live keys?

1 Answers
Best Answer
Mannu answered 4 days ago
Your Answer

14 + 20 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com