MCPcopy Index your code
hub / github.com/reflex-dev/reflex / should_prerender_routes

Function should_prerender_routes

reflex/utils/exec.py:866–874  ·  view source on GitHub ↗

Check if the app should prerender routes. Returns: True if the app should prerender routes.

()

Source from the content-addressed store, hash-verified

864
865
866def 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
877def get_compile_context() -> constants.CompileContext:

Callers 1

__call__Method · 0.90

Calls 3

is_prod_modeFunction · 0.85
is_setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected