Closed diegoaguilar closed 5 years ago
I got the following serverlessIfElse definition:
serverlessIfElse
serverlessIfElse: - ExcludeIf: functions.post.environment.RENDERED_CONTENTFUL_ENTRY_TOPIC_ARN: '"${self:provider.stage}" == "development"'
I made sure that provider.stage is set to development is set to 'development'.
provider.stage is set to development
'development'
However, when running server, I can notice:
serverless offline
SLS_DEBUG=*
post.environment.RENDERED_CONTENTFUL_ENTRY_TOPIC_ARN
In a few words, this plugin has no effect when serverless online is running. I made a test with serverless deploy and I could see it having effect.
serverless deploy
Any opinions?
Please make sure you include serverless-plugin-ifelse before serverless-offline plugin under plugins.
serverless-plugin-ifelse
serverless-offline
plugins: - serverless-plugin-ifelse - serverless-offline
I got the following
serverlessIfElse
definition:I made sure that
provider.stage is set to development
is set to'development'
.However, when running server, I can notice:
serverless offline
settingSLS_DEBUG=*
beforepost.environment.RENDERED_CONTENTFUL_ENTRY_TOPIC_ARN
gets assigned.In a few words, this plugin has no effect when serverless online is running. I made a test with
serverless deploy
and I could see it having effect.Any opinions?