File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,7 @@ def run(
30
30
implementation : BackendImplementation [Any ] | None = None ,
31
31
) -> None :
32
32
"""Run a component with a development server"""
33
- logger .warning (
34
- "You are running a development server. "
35
- "Change this before deploying in production!"
36
- )
33
+ logger .warning (_DEVELOPMENT_RUN_FUNC_WARNING )
37
34
38
35
implementation = implementation or import_module ("idom.backend.default" )
39
36
@@ -94,3 +91,11 @@ def all_implementations() -> Iterator[BackendImplementation[Any]]:
94
91
)
95
92
96
93
yield module
94
+
95
+
96
+ _DEVELOPMENT_RUN_FUNC_WARNING = f"""\
97
+ The `run()` function is only intended for testing during development! To run in \
98
+ production, consider selecting a supported backend and importing its associated \
99
+ `configure()` function from `idom.backend.<package>` where `<package>` is one of \
100
+ { list (SUPPORTED_PACKAGES )} . For details refer to the docs on how to run each package.\
101
+ """
You can’t perform that action at this time.
0 commit comments