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

Support all backend configuration option defaults for dynamic backends #970

Open
guybedford opened this issue Sep 13, 2024 · 0 comments
Open

Comments

@guybedford
Copy link
Member

Currently the enableDynamicBackends call allows providing default configuration options for dynamic backends.

These defaults are restricted to only the three timeout values currently.

It would be beneficial to extend these defaults to all configuration options that make sense across all backend constructor calls generally.

Another way to frame this might even be as default construction options for all backends possibly even as fallbacks for options not provided to new Backend(). Under such a framing it might become import { setDefaultBackendOptions } from 'fastly:backend' say.

This would align well with eventually deprecating enableDynamicBackends() entirely, which could nice to get going for the next major release, to rather give a nicer error when dynamic backends are disabled.

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

No branches or pull requests

1 participant