1

My static website uses serviceAccountKey.json containing secret key for fetching from Firebase data used for building site content. I didn't want to put it into repository. Where can I store it in Netlify? Environment variable? Any better alternative?

Fedor
  • 1,392
  • 1
  • 17
  • 30
  • 1
    https://stackoverflow.com/questions/48453493/set-environment-variable-for-build-in-netlify/48466680#48466680 – talves Mar 28 '19 at 18:48
  • 1
    I marked this duplicate because the answer below is my answer on the duplicate question. There is really no alternative at this time. If it is a public open source repository, do not use this method. Also, the answer by Zobia is my answer from the duplicate question copied verbatim :(. Writing to the .env area is not really needed unless you are using a method that needs it. – talves Mar 28 '19 at 19:09

0 Answers0