amrnn90/breeze-nuxt

Being redirected to login page on refresh

luistrcastro opened this issue · 8 comments

Continuing #17

Hi, sorry for the late response. I'm using your library on a side project which I work on once a month.

I'm not getting any errors on the terminal. In the browser's console, I get this warning:

image

Are you getting this problem on a fresh install or after making modifications? Please try running the verified middleware on a fresh install of this repo and see if you can reproduce the issue.
Also what is the output of this command npx nuxi info?

I haven't customized anything major, just some redirect routes. I'll try a fresh install.

image

It's happening on a fresh clone of the repo as well. I'll try later starting a whole new application and let you know.

That is weird, are you running your Laravel app normally on localhost:8000?

This message appears with node v18 but disappears with node v20.

That is weird, are you running your Laravel app normally on localhost:8000?

Yes.

Do you think it may have something to do with Docker? I dockerized my app.

Well, issue #16 was getting similar console warnings and eventually it turned out he was using a custom domain name for his Laravel app but did not modify the .env file to match it, so make sure you set the NUXT_PUBLIC_BACKEND_URL environment variable correctly.
Otherwise try following @fouteox suggestion and update your Node.js version and see if that helps.

K, I'll try that. Thanks a millionon for your help