13 lines
353 B
TypeScript
13 lines
353 B
TypeScript
import { ConfigType, registerAs } from '@nestjs/config';
|
|
|
|
import { env, envBoolean } from '~/global/env';
|
|
|
|
export const swaggerRegToken = 'swagger';
|
|
|
|
export const SwaggerConfig = registerAs(swaggerRegToken, () => ({
|
|
enable: envBoolean('SWAGGER_ENABLE'),
|
|
path: env('SWAGGER_PATH')
|
|
}));
|
|
|
|
export type ISwaggerConfig = ConfigType<typeof SwaggerConfig>;
|