diff --git a/pynecone/utils.py b/pynecone/utils.py index 2b6c09995..c7f1a9e7b 100644 --- a/pynecone/utils.py +++ b/pynecone/utils.py @@ -499,7 +499,15 @@ def setup_frontend(): install_frontend_packages() # Link the assets folder. - ln(src=os.path.join("..", constants.APP_ASSETS_DIR), dest=constants.WEB_ASSETS_DIR) + if platform.system() == "Windows": + # copy asset files to public folder + mkdir(constants.WEB_ASSETS_DIR) + cp(src=constants.APP_ASSETS_DIR, dest=constants.WEB_ASSETS_DIR) + else: + ln( + src=os.path.join("..", constants.APP_ASSETS_DIR), + dest=constants.WEB_ASSETS_DIR, + ) def run_frontend(app: App):