Skip to content

Commit 572f0ed

Browse files
committed
make it only on export
1 parent 36665c1 commit 572f0ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

reflex/utils/prerequisites.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,10 +1101,10 @@ def _update_react_router_config(config: Config, export: bool = False):
11011101
"unstable_optimizeDeps": True,
11021102
},
11031103
"ssr": False,
1104-
"prerender": True,
11051104
}
11061105

11071106
if export:
1107+
react_router_config["prerender"] = True
11081108
react_router_config["build"] = constants.Dirs.BUILD_DIR
11091109

11101110
return f"export default {json.dumps(react_router_config)};"

0 commit comments

Comments
 (0)