Jelajahi Sumber

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

this file only gets copied during `reflex init`, so don't blow it away
Masen Furer 2 bulan lalu
induk
melakukan
462e734891
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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: