Comments (4)
Yes because it's for development purposes.
from awesome-nest-boilerplate.
if (['development', 'staging'].includes(configService.nodeEnv)) {
setupSwagger(app);
}
it's available in the development and staging environments. so if you want to have documentation in server deploy it to staging env instead of production
from awesome-nest-boilerplate.
I just tried both ways, commenting code and adding production and both working nice.
if (['development', 'staging', 'production'].includes(configService.nodeEnv)) {
setupSwagger(app);
}
from awesome-nest-boilerplate.
I need to make /documentation accessible on production but under Admin rule access , first of all I tried below :
/* if (['development', 'staging'].includes(configService.nodeEnv)) {
setupSwagger(app); }*/
setupSwagger(app);
To force make it accessible for all environment but still work on only dev
I mean I commented the condition and put setupSwagger method out of condition
Any suggestion to implement this approach ?
from awesome-nest-boilerplate.
Related Issues (20)
- Linter Errors HOT 1
- Run migration:generate not work! HOT 6
- How to save the image locally? HOT 1
- Exception Inserting a new Post HOT 2
- boilerplate.polyfill.ts
- Error when using pagination and specify column select HOT 3
- How to integrate Firebase?
- AuthController unit test not working HOT 2
- controller return type
- ERROR [ExceptionsHandler] No metadata for "UserEntity" was found. HOT 1
- [Feature Request] Add logging with verbosity levels HOT 1
- Error received from user registration endpoint HOT 2
- Error when running "yarn migration:generate migration_name" HOT 4
- No resolvers provided! nestjs-i18n won't workt properly, please follow the quick-start guide: https://nestjs-i18n.com/quick-start HOT 1
- Project runs but is not being served HOT 1
- error TS2550: Property 'replaceAll' does not exist on type 'string'. HOT 5
- Sweep: Write a test for src/modules/auth/auth.controller.ts HOT 3
- Eslint Not working HOT 1
- HttpExceptionFilter to translation interceptor
- ERROR [ExceptionsHandler] You need to use @UseDto on class (ClassNameEntity) be able to call toDto function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-nest-boilerplate.