Open Altro31 opened 2 months ago
This is because @nestjs/swagger
does not directly set the static resources related to swagger-ui-dist
, but obtains them through the request path, but I did not see it in the @nestjs/swagger
related tutorials, so this should be a feature (function) corresponding to some builder development, but we do not support this feature. You can temporarily avoid it in the following way. We will try to find a way to solve it later.
import * as express from 'express';
// ...
app.use(
'/api',
express.static(
path.join(process.cwd(), 'node_modules', 'swagger-ui-dist'),
{},
),
);
Steps to reproduce
Reproduce link
https://github.com/Altro31/farm-swagger.git
What is actually happening?
the swagger page don't get rendered
System Info