fix: api script cross-platform
Updated the dev:api script to use `uv run` instead of a hardcoded virtual environment path. Changes: - replaced `.venv/bin/uvicorn` with `uv run uvicorn` Reason: The previous implementation relied on a POSIX-specific path, which breaks on Windows (where executables are located in `.venv/Scripts`). Using `uv run` ensures the command works consistently across different operating systems by resolving the environment automatically.
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@
|
||||
"dev": "turbo run dev //#dev:api",
|
||||
"build": "turbo run build",
|
||||
"start": "turbo run start",
|
||||
"dev:api": ".venv/bin/uvicorn api:app --host 0.0.0.0 --port 8000 --reload"
|
||||
"dev:api": "uv run uvicorn api:app --host 0.0.0.0 --port 8000 --reload"
|
||||
},
|
||||
"workspaces": [
|
||||
"frontend"
|
||||
|
||||
Reference in New Issue
Block a user