centrelize the configuration folder
This commit is contained in:
1 parent
dfa037cf9d
commit
a7fd89b7c2
2 files changed
+5
-1
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
database:
|
||||||
|
host: 'localhost'
|
||||||
|
port: 27017
|
||||||
|
name: 'aman'
|
||||||
@@ -4,6 +4,6 @@ import { join } from 'path';
|
|||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
return yaml.load(
|
return yaml.load(
|
||||||
readFileSync(join(__dirname, 'config.yaml'), 'utf8'),
|
readFileSync(join(process.cwd(), 'config/config.yaml'), 'utf8'),
|
||||||
) as Record<string, any>;
|
) as Record<string, any>;
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user