Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.7.0 --stage is half ignored #1408

Closed
alexcroox opened this issue May 12, 2022 · 2 comments · Fixed by #1539
Closed

8.7.0 --stage is half ignored #1408

alexcroox opened this issue May 12, 2022 · 2 comments · Fixed by #1539
Labels

Comments

@alexcroox
Copy link

alexcroox commented May 12, 2022

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...

image

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
@alexcroox alexcroox changed the title 8.7.0 --stage is ignored 8.7.0 --stage is half ignored May 12, 2022
@dnalborczyk
Copy link
Collaborator

dnalborczyk commented Aug 13, 2022

thank you for filing the issue @alexcroox

I'm having a problem to see what the issue is about. your screenshot is showing the stage. what am I missing?

also, if you are still able to reproduce, could you also try the very latest v9?

labeling as question for now.

@dnalborczyk
Copy link
Collaborator

nm, I was able to repro if you meant the console.log message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants