amrnn90 / breeze-nuxt

An application / authentication starter kit frontend in Nuxt3 for Laravel Breeze.
MIT License
198 stars 33 forks source link

Being redirected to login page on refresh #21

Open luistrcastro opened 1 year ago

luistrcastro commented 1 year ago

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

amrnn90 commented 1 year ago

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?

luistrcastro commented 1 year ago

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

image

luistrcastro commented 1 year ago

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.

amrnn90 commented 1 year ago

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

fouteox commented 12 months ago

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

luistrcastro commented 12 months ago

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.

amrnn90 commented 12 months ago

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.

luistrcastro commented 12 months ago

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