#Configured `APP_URL` but links in emails still show as `http://localhost:3000/password-reset/......`

6 messages · Page 1 of 1 (latest)

proven tinsel
#

Any idea why this could be? Very frustrating. I confirmed with config('app.url') that it's the right URL

atomic pewter
proven tinsel
#

I’ve thought about this, but that’s not the problem. I get a fresh everything on deploy, because I’m building a new image and deploying that image (using Fly.io)

nimble pagoda
#

Are your emails queued and have you restarted your queue worker?

rocky roost
#

If you have all you set up done. And again you have pushed in queued email. You need to run optimize clear and restart you queue.

proven tinsel
#

If anyone else is reading this: I found it. An app scaffolded with Breeze "api" has this line in AuthServiceProvider:

ResetPassword::createUrlUsing(function ($notifiable, $token) {
    return config('app.frontend_url')."/password-reset/$token?email={$notifiable->getEmailForPasswordReset()}";
});