From 5e50ec9ecd9e4056ad507df4cf4e9043fa1adb14 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 22 Oct 2025 23:44:12 +0200 Subject: [PATCH] config.ts: allow to set PUBLIC_PATH --- server/src/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/config.ts b/server/src/config.ts index a6863d15..7ac70537 100644 --- a/server/src/config.ts +++ b/server/src/config.ts @@ -30,7 +30,8 @@ export class Config { | 'production' | 'test'; - static readonly PUBLIC_PATH = join(__dirname, '../public'); + static readonly PUBLIC_PATH = + process.env.PUBLIC_PATH || join(__dirname, '../public'); static readonly ASSETS_PATH = process.env.ASSETS_PATH || join(this.configDirectory, 'img');