Преглед на файлове

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

this file only gets copied during `reflex init`, so don't blow it away
Masen Furer преди 2 месеца
родител
ревизия
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: