def update_from_env(self) -> dict[str, Any]:
        """Update the config values based on set environment variables.
        If there is a set env_file, it is loaded first.

        Returns:
            The updated config values.
        """
        if self.env_file:
            _load_dotenv_from_str(self.env_file)

        updated_values = {}
        # Iterate over the fields.
        for key, field in self.__fields__.items():
            # The env var name is the key in uppercase.
            for prefix in self._prefixes:
                if environment_variable := os.environ.get(f"{prefix}{key.upper()}"):
                    break
            else:
                # Default to non-prefixed env var if other are not found.
                if environment_variable := os.environ.get(key.upper()):
                    console.deprecate(
                        f"Usage of deprecated {key.upper()} env var detected.",
                        reason=f"Prefer `{self._prefixes[0]}` prefix when setting env vars.",
                        deprecation_version="0.7.13",
                        removal_version="0.8.0",
                    )

            # If the env var is set, override the config value.
            if environment_variable and environment_variable.strip():
                # Interpret the value.
                value = interpret_env_var_value(
                    environment_variable,
                    true_type_for_pydantic_field(field),
                    field.name,
                )

                # Set the value.
                updated_values[key] = value

                if key.upper() in _sensitive_env_vars:
                    environment_variable = "***"

                if value != getattr(self, key):
                    console.debug(
                        f"Overriding config value {key} with env var {key.upper()}={environment_variable}",
                        dedupe=True,
                    )
        return updated_values
Update the config values based on set environment variables.
        If there is a set env_file, it is loaded first.

        Returns:
            The updated config values.
        
reflex/config.py