I did try in prod, and it gives an error too, but it does not show
To show the error I changed the .env APP_ENV=prod -> APP_ENV=dev
.env
APP_ENV=prod
APP_ENV=dev