question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Function Configuration

See original GitHub issue

Wondering if configuration could be loaded as a function passing it some arguments. The same way Babel v7 Config Function API loads a configuration function passing it an API object. babeljs.io/docs/en/config-files#config-function-api

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
davidtheclarkcommented, Jan 26, 2019

Cosmiconfig is limited in its design, it loads the files even when required and stops on the first configuration found. Now I understand why its not used in popular projects.

@myuseringithub This sounds like criticism but I don’t think I understand the problem. It’s established above that you can do what you want with Cosmiconfig, right? Configuration can be a .js file exporting a function.

You wish this was two modules instead of one? If you want to use separate packages for looking up configuration files and loading them, those packages exist.

1reaction
chrisblossomcommented, Jan 22, 2019

I made ex-config to handle the parsing of config files. @myuseringithub maybe it will work for your use-case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Lambda function options
On the function configuration page, on the General configuration pane, choose Edit. For Memory (MB), set a value from 128 MB to 10,240...
Read more >
Configure function app settings in Azure Functions
To add a setting in the portal, select New application setting and add the new key-value pair. Function app settings in the Azure...
Read more >
Configure your environment | Cloud Functions for Firebase
Configure your environment ; Parameterized configuration. Configure CLI behavior; Parameter types ; Environment variables. Deploying multiple sets of environment ...
Read more >
How to Manage Functions in App Platform
To change the Function specifications, click the edit icon to open the Settings page of the Function. Here, you can edit the name,...
Read more >
Configure advanced issue workflows
Learn about advanced workflow configuration in Jira Cloud. ... Jira includes several optional post functions that can be added to transitions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found