Make backend API URL configurable via environment variables

Updated frontend to use BACKEND_API_URL environment variable at compile time with fallback to localhost. Added configuration to Trunk.toml and .env.example for development.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Connor Johnstone
2025-08-28 16:26:48 -04:00
parent 25bf194d19
commit 42091492d5
3 changed files with 13 additions and 4 deletions

View File

@@ -2,6 +2,9 @@
target = "index.html"
dist = "dist"
[env]
BACKEND_API_URL = "http://localhost:3000/api"
[watch]
watch = ["src", "Cargo.toml"]
ignore = ["backend/"]