소스 검색

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: