Problem with Inertia when deploy
Hi Everybody
In .env file APP_URL and ASSET_URL are both "http://domain.com.br/site2" I put on app.blade.php the directive @routes, after that i run:
"php artisan ziggy:generate",
the /resources/js/ziggy.js file show the correct configuration:
const Ziggy = {"url":"http://www.domain.com.br/site2","port":null,"defaults":{},"routes":{"sanctum.csrf-cookie"_ ... ,
but when i access e check the source code, appears the server and port server:
const Ziggy = {"url":"http://10.1.1.20:8083","port":8083,"defaults":{},"routes":{"sanctum.csrf-cookie":_ ....
The app its inside a docker container using nginx and app with PHP services. Its first time this happend and don't know how to put the domain instead of IP address/port in to source code.
P.S = the @Vite('resources/js/app.js') directive, show the correct domain
Thanks in advance
Please or to participate in this conversation.