From ab2a0d07f211eb51a1de0b3e58e59695c01827a1 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 30 May 2023 18:46:34 +0100 Subject: [PATCH] Make mandatory config variable with defaults --- src/config/config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config/config.ts b/src/config/config.ts index 9173893c..3307bfa8 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -41,11 +41,11 @@ export interface Config { log: LogConfig; port: number; serveStaticAssets: boolean; + urlPrefix: string; defaults: any; httpHeaders?: Record; prometheusUsername?: string; prometheusPassword?: string; - urlPrefix?: string; } const config: Record = { @@ -64,6 +64,7 @@ const config: Record = { }, port: 8000, serveStaticAssets: true, + urlPrefix: "", defaults, }, @@ -82,6 +83,7 @@ const config: Record = { }, port: 8000, serveStaticAssets: true, + urlPrefix: "", defaults, }, @@ -100,6 +102,7 @@ const config: Record = { }, port: 8000, serveStaticAssets: false, + urlPrefix: "", defaults, }, };