Check if the app should prerender routes. Returns: True if the app should prerender routes.
()
| 864 | |
| 865 | |
| 866 | def should_prerender_routes() -> bool: |
| 867 | """Check if the app should prerender routes. |
| 868 | |
| 869 | Returns: |
| 870 | True if the app should prerender routes. |
| 871 | """ |
| 872 | if not environment.REFLEX_SSR.is_set(): |
| 873 | return is_prod_mode() |
| 874 | return environment.REFLEX_SSR.get() |
| 875 | |
| 876 | |
| 877 | def get_compile_context() -> constants.CompileContext: |
no test coverage detected