f1d187c005
The build-time env var NEXT_PUBLIC_APP_URL was baking in the wrong URL for magic link redirects. Using window.location.origin ensures the redirect always matches the domain the user is currently on. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>