Просмотр исходного кода

compiler: preserve `app/routes.js` when purging

this file only gets copied during `reflex init`, so don't blow it away
Masen Furer 2 месяцев назад
Родитель
Сommit
462e734891
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      reflex/compiler/compiler.py

+ 1 - 1
reflex/compiler/compiler.py

@@ -609,7 +609,7 @@ def purge_web_pages_dir():
         return
 
     # Empty out the web pages directory.
-    utils.empty_dir(get_web_dir() / constants.Dirs.PAGES, keep_files=["_app.js"])
+    utils.empty_dir(get_web_dir() / constants.Dirs.PAGES, keep_files=["routes.js"])
 
 
 if TYPE_CHECKING: