fix(media): resolve 400 Bad Request on next/image proxy, add auto scroll to top on route change, disable swagger in prod, and fix dev ports
This commit is contained in:
1 parent
2d54fc8208
commit
c7d7ac3aa3
22 files changed
+9862
-9779
No files matched your search
+2
-2
@@ -101,10 +101,10 @@ async function bootstrap() {
|
||||
|
||||
app.useGlobalInterceptors(new DecimalInterceptor());
|
||||
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
const isExplicitProduction = process.env.NODE_ENV === 'production';
|
||||
const enableSwagger = process.env.ENABLE_SWAGGER === 'true';
|
||||
|
||||
if (!isProduction || enableSwagger) {
|
||||
if (!isExplicitProduction && enableSwagger !== false) {
|
||||
const config = new DocumentBuilder()
|
||||
.setTitle('Canina Iran API')
|
||||
.setDescription(
|
||||
|
||||
Reference in new issue
Block a user