We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0479d3 commit 1ed1b94Copy full SHA for 1ed1b94
2 files changed
reflex/constants/base.py
@@ -174,6 +174,8 @@ class ReactRouter(Javascript):
174
rf"(?:{DEV_FRONTEND_LISTENING_REGEX}|{PROD_FRONTEND_LISTENING_REGEX})(.*)"
175
)
176
177
+ SPA_FALLBACK = "__spa-fallback.html"
178
+
179
180
# Color mode variables
181
class ColorMode(SimpleNamespace):
reflex/utils/build.py
@@ -201,7 +201,7 @@ def build():
201
processes.show_progress("Creating Production Build", process, checkpoints)
202
_duplicate_index_html_to_parent_dir(wdir / constants.Dirs.STATIC)
203
path_ops.cp(
204
- wdir / constants.Dirs.STATIC / "__spa-fallback.html",
+ wdir / constants.Dirs.STATIC / constants.ReactRouter.SPA_FALLBACK,
205
wdir / constants.Dirs.STATIC / "404.html",
206
207
0 commit comments