Refactor metamigo-common

This commit is contained in:
Abel Luck 2023-03-13 11:12:50 +00:00
parent cae0071851
commit b3d8c3918e
32 changed files with 5 additions and 14 deletions

View file

@ -1,21 +0,0 @@
import { ConvictSchema } from "./types";
export interface IServerConfig {
address: string;
port: number;
}
export const ServerConfig: ConvictSchema<IServerConfig> = {
address: {
doc: "The IP address to bind the server to",
format: "ipaddress",
default: "0.0.0.0",
env: "SERVER_ADDRESS",
},
port: {
doc: "The port to bind the server to",
format: "port",
default: 3001,
env: "SERVER_PORT",
},
};