File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ class ReactRouter(Javascript):
174174 rf"(?:{ DEV_FRONTEND_LISTENING_REGEX } |{ PROD_FRONTEND_LISTENING_REGEX } )(.*)"
175175 )
176176
177+ SPA_FALLBACK = "__spa-fallback.html"
178+
177179
178180# Color mode variables
179181class ColorMode (SimpleNamespace ):
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ def build():
201201 processes .show_progress ("Creating Production Build" , process , checkpoints )
202202 _duplicate_index_html_to_parent_dir (wdir / constants .Dirs .STATIC )
203203 path_ops .cp (
204- wdir / constants .Dirs .STATIC / "__spa-fallback.html" ,
204+ wdir / constants .Dirs .STATIC / constants . ReactRouter . SPA_FALLBACK ,
205205 wdir / constants .Dirs .STATIC / "404.html" ,
206206 )
207207
You can’t perform that action at this time.
0 commit comments