As per the documentation since we have stripe Test version we will have only stripe security key which we need to keep for both the Prod and Default value.
But when i ran the below command i am getting error like this :
C:\Program Files\Git\serverless-stack-2-api>serverless invoke local --function b
illing --path mocks/billing-event.json
Y A M L Exception --------------------------------------
duplicated mapping key in "C:\Program Files\Git\serverless-stack-2-api\env.yml
" at line 15, column -60:
prod:
^
For debugging logs, run again after setting the "SLS_DEBUG=*" environment v
ariable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: win32
Node Version: 8.11.3
Serverless Version: 1.27.3
dev:
APP_NAME: serverless-nodejs-starter
stripeSecretKey: "xxx"
prod:
APP_NAME: serverless-nodejs
# Add the environment variables for the various stages
default:
stripeSecretKey: "xxx"
Since the whole documentation is in dev we need to change it.
As i mentioned above this env.yml gives me error like this
C:\Program Files\Git\serverless-stack-2-api>serverless invoke local --function b
illing --path mocks/billing-event.json
Y A M L Exception --------------------------------------
duplicated mapping key in "C:\Program Files\Git\serverless-stack-2-api\env.yml
" at line 15, column -60:
Do you want me to replace env.yml with the lines you had specified or you want to append the lines to the env.yml ?