Closed m0x61h0x64i closed 2 years ago
Your url is set to localhost. You will need to change the URL based on the environment
Your url is set to localhost. You will need to change the URL based on the environment
i removed the production server. you can consider that the above code has an production url like this :
servers:
[
{
url: 'https://@example.com'
}
]
it dosent work.
Your url is set to localhost. You will need to change the URL based on the environment
could you please test the above code ? it dosent work im 100% sure
I'm also facing a similar issue.
I can see that the network request for swagger-ui.css
is actually returning the HTML code instead of CSS.
Running into the same issue as well
@m0x31h0x64i did you solve it ? im also facing the similar issue
Hello @anjitpariyar, no bro i still have this problem.
@m0x31h0x64i I moved to swagger json and used cdn for CSS, its working for me at least like this ` const swaggerDocument = require("./swagger.json"); const swaggeroptions = { customCssUrl: "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/4.18.3/swagger-ui.css", };
// connecting to swagger app.use( "/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerDocument, swaggeroptions) ); `
index.js :
swagger file :