can we customize the css?
bahaa-alden opened this issue · comments
Bahaa alden abdo commented
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
i put the url of css file in customCssUrl and it did not work
Minimum reproduction code
https://github.com/bahaa-alden/nest-init
Steps to reproduce
No response
Expected behavior
i want to add css file to swagger in nestjs
Package version
9.0.0
NestJS version
9.0.0
Node.js version
18
In which operating systems have you tested?
- macOS
- Windows
- Linux
Other
No response
Bahaa alden abdo commented
it worked after i add this to main.ts
app.useStaticAssets(join(__dirname, '..', 'public'), { extensions: ['jpg', 'css', 'png'], index: false, });