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

Introduce Turbo.config object #1217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seanpdoyle
Copy link
Contributor

The initial implementation aims to replace the ad hoc configurations spread across window.Turbo and Turbo.session. Those objects shouldn't be considered part of the public interface, especially for extension.

This commit exports a single object from src/core/config to serve as a centralized, user-facing repository for configuration values.

The main src/core/config object is composed of two constituent parts:

  • src/core/config/drive
  • src/core/config/forms

In the future, the directory structure can be expanded upon to suit the needs of the project.

Any user-facing configuration outside of Turbo.config is deprecated.

@seanpdoyle
Copy link
Contributor Author

The initial implementation aims to replace the ad hoc configurations
spread across `window.Turbo` and `Turbo.session`. Those objects
shouldn't be considered part of the public interface, especially for
extension.

This commit exports a single object from `src/core/config` to serve as a
centralized, user-facing repository for configuration values.

The main `src/core/config` object is composed of two constituent parts:

* `src/core/config/drive`
* `src/core/config/forms`

In the future, the directory structure can be expanded upon to suit the
needs of the project.

Any user-facing configuration outside of `Turbo.config` is deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant