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

plugin ignores custom definitions when places in an external file #61

Closed
tomeraz opened this issue Jul 19, 2020 · 1 comment
Closed

Comments

@tomeraz
Copy link

tomeraz commented Jul 19, 2020

My serverless.yml references an external file:

custom: ${file(../../serverless.common.yml):custom}

Placing settings inside serverless.common.yml:

custom:
  dotenv:
    path: ../../.env

serverless.dotenv-plugin ignores these settings.
When debugging plugin code, row 13 leaves this.config undefined:

    this.config =
      this.serverless.service.custom && this.serverless.service.custom['dotenv']

because this.serverless.service.custom equals: "${file(../../serverless.common.yml):custom}"

@neverendingqs
Copy link
Owner

This looks like a duplicate of #52, and I would like to keep the conversation. Please reopen this issue if it is not.

Thanks!

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

No branches or pull requests

2 participants