add config module
This commit is contained in:
parent
e5912600ce
commit
2afa6bcb4c
@ -3,7 +3,6 @@ import { toNumber } from 'lodash';
|
||||
import { createAppConfig } from '@/modules/core/config';
|
||||
|
||||
export const app = createAppConfig((configure) => ({
|
||||
port: configure.env.get<number>('APP_PORT', (v) => toNumber(v), 3099),
|
||||
prefix: 'api',
|
||||
});
|
||||
});
|
||||
port: configure.env.get<number>('APP_PORT', (v) => toNumber(v), 3099),
|
||||
prefix: 'api',
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user