Symfony: Swagger UI assets on 404 in production only

27 Views Asked by At

I am trying symfony with api platform, all was working well until I try it on production. I qm unable to diplqy correctly the swagger, assets were in 404. If I turn on the APP_DEBUG assets load normaly.

I have tryied an assets:install and a clear cache. I am using traefik, but with symfony server it is the same issue.

Bellow screenshot are from local test but it is the same from my production server.

enter image description here

enter image description here

symfony 7.0.2 api-platform/core 3.2

Thanks.

0

There are 0 best solutions below