Skip to content

Commit

Permalink
Make mandatory config variable with defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mdawsonuk authored and cblanc committed Jun 7, 2023
1 parent b3d27fe commit ab2a0d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export interface Config {
log: LogConfig;
port: number;
serveStaticAssets: boolean;
urlPrefix: string;
defaults: any;
httpHeaders?: Record<string, string>;
prometheusUsername?: string;
prometheusPassword?: string;
urlPrefix?: string;
}

const config: Record<Env, Config> = {
Expand All @@ -64,6 +64,7 @@ const config: Record<Env, Config> = {
},
port: 8000,
serveStaticAssets: true,
urlPrefix: "",
defaults,
},

Expand All @@ -82,6 +83,7 @@ const config: Record<Env, Config> = {
},
port: 8000,
serveStaticAssets: true,
urlPrefix: "",
defaults,
},

Expand All @@ -100,6 +102,7 @@ const config: Record<Env, Config> = {
},
port: 8000,
serveStaticAssets: false,
urlPrefix: "",
defaults,
},
};
Expand Down

0 comments on commit ab2a0d0

Please sign in to comment.