I configured project with laravel 9 and everything works. Then I moved the layout and everything is fine too.
When I make a resource build, the site works correctly.
B0ut when vite runs server (0.0.0.0), then all the images that are registered in css do not work.
All images are in the public folder. And I move them over is not an option for me.
csss code:
background-image: url('/img/home/sweets-one.png'); {my_local}/img/home/sweets-one.png - 200
http://0.0.0.0:3000/img/home/sweets-one.png - 404
vite config:
export default defineConfig({ server: { host: '0.0.0.0', port: 3000, open: false, }, plugins: [ vue(), laravel({ input: [ // css 'resources/scss/app.scss', ], refresh: true, }), ], }); how can I fix it?

npm run dev --hostand set the docker forward port to correct, then you can easily view app with such aslocalhost:8080.