Zebra Codes

How to use Laravel + Vite from Docker

16th January, 2023

If you are running Laravel inside a Docker container and using Vite for Javascript/CSS bundling, you may find that the files fail to load when you view your website. You instead see one of the following errors:

  • GET http://127.0.0.1:5173/@vite/client net::ERR_CONNECTION_REFUSED
  • GET http://0.0.0.0:5173/@vite/client net::ERR_ADDRESS_INVALID
Read More >