Relative Content

Tag Archive for phplaravelvitelaravel-10statamic

Vite doesn’t load asset when running with host flag on network URL

Currently, I’m trying to access a local version of my site on my phone, I’m working on my computer. My site is built with the Statamic CMS which uses the Laravel environment. I’ve noticed that the recommended command “vite –host” (though advised) doesn’t suffice to access it from my phone. Everything works perfectly as long as I’m on my computer. When I try to access “http://192.168.1.5:5173” from my phone, I see the Laravel page asking me to go to the page “http://xxx.test”. However, when I go to this page, I get a blank screen.