fix: swagger spec in production

This commit is contained in:
karishmas6
2024-10-30 21:06:39 +05:30
parent 056a01cf34
commit 7689a0b159

View File

@@ -25,7 +25,7 @@ const options = {
},
],
},
apis: [path.join(__dirname, '../api/*.ts')],
apis: process.env.NODE_ENV === 'production' ? [path.join(__dirname, '../api/*.js')] : [path.join(__dirname, '../api/*.ts')]
};
const swaggerSpec = swaggerJSDoc(options);