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

custom config file doesn't appear to await async config functions #559

Open
fridaystreet opened this issue Nov 19, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@fridaystreet
Copy link

fridaystreet commented Nov 19, 2024

Describe the bug

using an async function for the config skips using the config and just uses the built in config

custom:
  esbuild:
    config: './esbuild.config.js'

with

module.exports=async (serverless) => {

  await someAsyncFunction()

  return {
    ...the config
  }

To Reproduce

as above

Expected behavior
The call to the config function waits for it to fulfill the promise and return the config

Versions (please complete the following information):

  • OS: Mac
  • Serverless Framework Version: 4.4.7
  • Plugin Version: 1.54.5
@fridaystreet fridaystreet added the bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant