The Vite development proxy target was hardcoded to http://localhost:5001, ignoring the VITE_API_BASE_URL environment variable that the axios client already respects. This caused the dev proxy to still route to localhost even when users configured a remote or custom backend address. - Use loadEnv() in vite.config.js to read VITE_API_BASE_URL from the project root .env file and pass it as the proxy target (fallback: localhost:5001) - Document VITE_API_BASE_URL in .env.example so users know the variable exists |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||