Cool! You can use the JSON format of your OpenAPI with other generator tools for example to generate types and fetch functions for your frontend application.
The ConfigurationService would simply be the most NestJS way of doing it. It’s awesome to validate your envs so you don’t forget about configuring something. But it’s not necessary, just a further read: docs.nestjs.com/techniques/configu...
Cool! You can use the JSON format of your OpenAPI with other generator tools for example to generate types and fetch functions for your frontend application.
The
ConfigurationService
would simply be the most NestJS way of doing it. It’s awesome to validate your envs so you don’t forget about configuring something. But it’s not necessary, just a further read: docs.nestjs.com/techniques/configu...@mahnuh another update, there is also
/docs-yaml
, so best is to secure with regex/docs*
or name all three paths explicitly.