serverless-offline
serverless-offline copied to clipboard
8.7.0 --stage is half ignored
Bug Report
cli command
nodemon --exec 'serverless offline start --stage local --httpPort 3001' -e 'js'
--stage is ignored and defaults to dev
> Starting Offline at stage dev (eu-west-2)
I have tried this without dotenv-plugin in case there was a conflict, but it was the same behaviour.
Weirdly the stage prepend is correct...

service: paw-paddock-api
frameworkVersion: '3'
plugins:
- serverless-dotenv-plugin
- serverless-plugin-optimize
- serverless-prune-plugin
- serverless-offline
provider:
name: aws
runtime: nodejs14.x
region: eu-west-2
memorySize: 128
timeout: 15
custom:
optimize:
debug: false
minify: false
includePaths: ['package.json', 'locales/', 'api/email-templates/']
prune:
automatic: true
number: 3
functions:
app:
handler: api/index.handler
events:
- http:
path: /
method: ANY
cors: true
- http:
path: /{proxy+}
method: ANY
cors: true
Environment
"serverless": "3.17.0", "serverless-dotenv-plugin": "4.0.0", "serverless-offline": "8.7.0", "serverless-plugin-optimize": "4.2.1-rc.1", "serverless-prune-plugin": "2.0.1",
-
node.js
version: v16.14.2 -
OS
: macOS 12.3.1