Explorar el Código

make it only on export

Khaleel Al-Adhami hace 3 semanas
padre
commit
572f0eda75
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      reflex/utils/prerequisites.py

+ 1 - 1
reflex/utils/prerequisites.py

@@ -1101,10 +1101,10 @@ def _update_react_router_config(config: Config, export: bool = False):
             "unstable_optimizeDeps": True,
         },
         "ssr": False,
-        "prerender": True,
     }
 
     if export:
+        react_router_config["prerender"] = True
         react_router_config["build"] = constants.Dirs.BUILD_DIR
 
     return f"export default {json.dumps(react_router_config)};"