reflex export: get_app before setup_frontend (#1286)

This commit is contained in:
Masen Furer 2023-06-30 17:58:31 -07:00 committed by GitHub
parent 6b54b2500c
commit 51452a6e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,8 +228,10 @@ def export(
console.rule("[bold]Compiling production app and preparing for export.")
if frontend:
build.setup_frontend(Path.cwd())
# ensure module can be imported and app.compile() is called
prerequisites.get_app()
# set up .web directory and install frontend dependencies
build.setup_frontend(Path.cwd())
build.export_app(
backend=backend,