File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,9 @@ class BaseConfig:
254254 # List of fully qualified import paths of plugins to disable in the app (e.g. reflex.plugins.sitemap.SitemapPlugin).
255255 disable_plugins : list [str ] = dataclasses .field (default_factory = list )
256256
257+ # Whether to skip plugin checks.
258+ _skip_plugins_checks : bool = dataclasses .field (default = False , repr = False )
259+
257260 _prefixes : ClassVar [list [str ]] = ["REFLEX_" ]
258261
259262
@@ -318,7 +321,8 @@ def _post_init(self, **kwargs):
318321 setattr (self , key , env_value )
319322
320323 # Add builtin plugins if not disabled.
321- self ._add_builtin_plugins ()
324+ if not self ._skip_plugins_checks :
325+ self ._add_builtin_plugins ()
322326
323327 # Update default URLs if ports were set
324328 kwargs .update (env_kwargs )
@@ -534,7 +538,7 @@ def _get_config() -> Config:
534538 if not spec :
535539 # we need this condition to ensure that a ModuleNotFound error is not thrown when
536540 # running unit/integration tests or during `reflex init`.
537- return Config (app_name = "" )
541+ return Config (app_name = "" , _skip_plugins_checks = True )
538542 rxconfig = importlib .import_module (constants .Config .MODULE )
539543 return rxconfig .config
540544
You can’t perform that action at this time.
0 commit comments