Use Subtrace in your macOS development environment
Start backend
npm run dev
Start Subtrace
curl -fsSL https://subtrace.dev/install.sh | sh # starts listening on 9000 and proxies requests to 8000 subtrace proxy 9000:8000
Show example output
Update frontend
const API_URL = 'http://localhost:8000' const API_URL = 'http://localhost:9000' fetch(`${API_URL}/api/users`) .then(res => res.json()) .then(data => setUsers(data))
See requests
subt.link