mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 14:53:25 +00:00
Remove provider metric table and replace prometheus metrics with something more efficient
Co-authored-by: William Oldham <github@binaryoverload.co.uk>
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import { devFragment } from '@/config/fragments/dev';
|
||||
import { dockerFragment } from '@/config/fragments/docker';
|
||||
import { createConfigLoader } from 'neat-config';
|
||||
import { z } from 'zod';
|
||||
|
||||
const fragments = {
|
||||
dev: devFragment,
|
||||
dockerdev: dockerFragment,
|
||||
};
|
||||
|
||||
export const ormConfigSchema = z.object({
|
||||
postgres: z.object({
|
||||
// connection URL for postgres database
|
||||
@@ -15,6 +22,8 @@ export const ormConf = createConfigLoader()
|
||||
prefix: 'MWB_',
|
||||
})
|
||||
.addFromFile('config.json')
|
||||
.setFragmentKey('usePresets')
|
||||
.addConfigFragments(fragments)
|
||||
.addZodSchema(ormConfigSchema)
|
||||
.freeze()
|
||||
.load();
|
||||
|
Reference in New Issue
Block a user