Skip to content

Commit 8afbb85

Browse files
authored
Added Windows Performance Warning (#668)
1 parent 32513bd commit 8afbb85

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pynecone/pc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Pynecone CLI to create, run, and deploy apps."""
22

33
import os
4+
import platform
45
from pathlib import Path
56

67
import httpx
@@ -69,6 +70,11 @@ def run(
6970
port: str = typer.Option(None, help="Specify a different port."),
7071
):
7172
"""Run the app in the current directory."""
73+
if platform.system() == "Windows":
74+
utils.console.print(
75+
"[yellow][WARNING] We strongly advise you to use Windows Subsystem for Linux (WSL) for optimal performance when using Pynecone. Due to compatibility issues with one of our dependencies, Bun, you may experience slower performance on Windows. By using WSL, you can expect to see a significant speed increase."
76+
)
77+
7278
frontend_port = utils.get_config().port if port is None else port
7379
backend_port = utils.get_config().backend_port
7480

0 commit comments

Comments
 (0)