Config

reflex.config.Config

The config defines runtime settings for the app.

By default, the config is defined in an rxconfig.py file in the root of the app.

Every config value can be overridden by an environment variable with the same name in uppercase and a REFLEX_ prefix. For example, db_url can be overridden by setting the REFLEX_DB_URL environment variable.

See the configuration docs for more info.

Methods

SignatureDescription
class_fields(cls) -> set[str]Get the fields of the config class.
json(self) -> strGet the config as a JSON string.
update_from_env(self) -> dict[str, typing.Any]Update the config values based on set environment variables. If there is a set env_file, it is loaded first.
get_event_namespace(self) -> strGet the path that the backend Websocket server lists on.

Built with Reflex