Ross Coundon
04/19/2021, 9:04 PMFrank
Frank
IS_LOCAL=true npm run startRoss Coundon
04/19/2021, 9:08 PMthdxr
04/19/2021, 9:53 PMthdxr
04/19/2021, 9:53 PMRoss Coundon
04/19/2021, 10:05 PMFrank
Frank
IS_LOCAL env var in the stack definition?scope.local is probably the better approach than process.env.IS_LOCAL. We should stick with accessing a flag like this through CDK code.
We need to do a better job documenting scope.localRoss Coundon
04/20/2021, 6:39 AMthdxr
04/20/2021, 2:12 PMFrank
Frank
process.env.IS_LOCAL inside ur CDK code.Frank
.env. Here’s a link to the doc with some examples https://docs.serverless-stack.com/working-locally#environment-variablesJay