You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building and deploying an application to Vercel with the following frameworks and libraries:
Express
Prisma
Swagger
During the building and deploying process, I have a mistake when deploying to vercel like that: I can't see any apis in swagger when deploying to vercel (this is my link: https://tsa-backend.vercel.app/docs/ ), but everthing works well when building in local. Afterwards, I research and try to fix this error following these steps:
Replace the order of swagger setup and route in main file
Config the "apis" in swagger option
Downgrade of swagger-express-ui to 4.6.2
But the results are not different and I'm still having the same problem.
I'm building and deploying an application to Vercel with the following frameworks and libraries:
Express
Prisma
Swagger
During the building and deploying process, I have a mistake when deploying to vercel like that: I can't see any apis in swagger when deploying to vercel (this is my link: https://tsa-backend.vercel.app/docs/ ), but everthing works well when building in local. Afterwards, I research and try to fix this error following these steps:
Replace the order of swagger setup and route in main file
Config the "apis" in swagger option
Downgrade of swagger-express-ui to 4.6.2
But the results are not different and I'm still having the same problem.
have you tired to check the doc of the swagger? at some point, vercel does not suppot the cloud flare CNS style. maybe it would be good if you try to add the CND inside your main.ts or js file that you have in the root folder we you have declare the /docs routes for your API.
yeah exactly like this that you have here :) and it should be fine and should work. let me know how it goes.
Hello Mr.Milan,
I'm building and deploying an application to Vercel with the following frameworks and libraries:
During the building and deploying process, I have a mistake when deploying to vercel like that: I can't see any apis in swagger when deploying to vercel (this is my link: https://tsa-backend.vercel.app/docs/ ), but everthing works well when building in local. Afterwards, I research and try to fix this error following these steps:
But the results are not different and I'm still having the same problem.
Could you help me realize and fix this error? This is my repo:
https://github.com/TanNguyen17112003/tsa-backend/
The text was updated successfully, but these errors were encountered: