Auth0 NextJS Logout redirect deosnt work

Hi,
I have a NextJS app, and I try to redirect the client after he logs out to my landing page.
I have configured the Allowed Logout URLs to the landing page, and when I look at the console network logs, I see 2 GET requests:
the first is this - http://localhost:3000/api/auth/logout?returnTo=https%3A%2F%2Fwww.google.com which is what i am looking for,
and the second is this - https://dev-w2paekd3bopnt1mt.us.auth0.com/v2/logout?client_id=***&returnTo=http%3A%2F%2Flocalhost%3A3000 , which is to localhost:3000, and its not in the allowed urls and not the desired destination.
what am I missing?