Hi Adnan,
Thanks for this guide. Just recently completed my portfolio and I am creating a serverless form through this guide. That said, I am lost as to where specifically should I paste this code?
{ "NODE_ENV":"dev", "EMAIL":"john.doe@mail.com", "DOMAIN":"*" }
Am I suppose to do it this way?
custom: secrets: ${file(secrets.json)} <---- delete content and replace this //result: custom: secrets: ${ "NODE_ENV":"dev", "EMAIL":"john.doe@mail.com", "DOMAIN":"*"}
Is this right? This is my first time doing this. Never had experience with APIs.
sad. never got an answer on this
actually you have to use ${self:custom.secrets:NODE_ENV} instead of ${self:custom.secrets.NODE_ENV}
(same for EMAIL, DOMAIN)
you dont need to replace anything,just create a file called secrets.json and paste that snippet
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Adnan,
Thanks for this guide. Just recently completed my portfolio and I am creating a serverless form through this guide. That said, I am lost as to where specifically should I paste this code?
Am I suppose to do it this way?
Is this right?
This is my first time doing this. Never had experience with APIs.
sad. never got an answer on this
actually you have to use ${self:custom.secrets:NODE_ENV} instead of ${self:custom.secrets.NODE_ENV}
(same for EMAIL, DOMAIN)
you dont need to replace anything,just create a file called secrets.json and paste that snippet