It seems that the 404 error is related to the use of APP_ENV=prod in your .env file. By default, Symfony loads the dev and all environments, but prod might require additional configurations to work correctly
APP_ENV=prod
.env
dev
all
prod