feat: graphql + typeorm + config + postgresql
This commit is contained in:
9
src/commons/config/configuration.ts
Normal file
9
src/commons/config/configuration.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { readFileSync } from 'fs';
|
||||
import * as yaml from 'js-yaml';
|
||||
import { join } from 'path';
|
||||
|
||||
export default () => {
|
||||
return yaml.load(
|
||||
readFileSync(join(__dirname, '../../../config.yml'), 'utf8'),
|
||||
) as unknown;
|
||||
};
|
Reference in New Issue
Block a user