UNPKG

@cortexql/core

Version:

A RESTful API framework for your apps based on GraphQL type system.

20 lines (15 loc) 495 B
import { ConfigSource as BaseConfigSource, extendConfig, } from '@cortexql/core/config'; export interface MyConfigSource { // put your custom config here // facebookSecret: string; // nowApublicConfig: string; // remove the comment below and be open about your config // [key: string]: any; } export interface ConfigSource extends BaseConfigSource, MyConfigSource {} export const { config, loadConfig } = extendConfig<ConfigSource>(); require('./load'); export default config;