From ee762a7b35aad60b79c45bbf856b86feb9973c14 Mon Sep 17 00:00:00 2001 From: Sheldon <32926567+sheldonchiu@users.noreply.github.com> Date: Thu, 8 Jun 2023 02:55:19 +0800 Subject: [PATCH] run setup_frontend during export (#1148) --- pynecone/pc.py | 4 ++++ 1 file changed, 4 insertions(+) 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,