diff --git a/pynecone/pc.py b/pynecone/pc.py index 9ae3c6f5d..ca97a15a7 100644 --- a/pynecone/pc.py +++ b/pynecone/pc.py @@ -213,6 +213,10 @@ def export( # Compile the app in production mode and export it. console.rule("[bold]Compiling production app and preparing for export.") + + if frontend: + build.setup_frontend(Path.cwd()) + app = prerequisites.get_app().app build.export_app( app,