I dirty workaround I currently use is just linking to the build files before the vite directive. This way I can see the site from my mobile after running vite build.
Valet share + ngrok + vite not working
So I can't seem to solve one particular problem. I have been trying to solve it for a couple hours now but to no avail.
To reproduce: -I make a new laravel project and add the breeze starterkit
- I install all packages and run "npm run dev"
- I run "valet secure"
- I run 'valet share" which gives me the ngrok link
But when I go to the standard /login page none of the css/js is loading. The same problem happens when I access it on my local network.
The console outputs this:
[Warning] [blocked] The page at https://3a22-195-62-90-241.ngrok.io/login was not allowed to run insecure content from http://[::1]:5173/@vite/client.
[Warning] [blocked] The page at https://3a22-195-62-90-241.ngrok.io/login was not allowed to run insecure content from http://[::1]:5173/resources/css/app.css. (login, line 15)
[Warning] [blocked] The page at https://3a22-195-62-90-241.ngrok.io/login was not allowed to run insecure content from http://[::1]:5173/resources/js/app.js.
[Warning] The page at https://3a22-195-62-90-241.ngrok.io/login contains a form which targets an insecure URL http://3a22-195-62-90-241.ngrok.io/login. (login, line 28)
Please or to participate in this conversation.