From 59b67e5120079634dba716777a419fa8d47fb9ef Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Sun, 10 Oct 2021 11:01:18 +0200 Subject: [PATCH] frontend: fix config URL when loading from sub-page --- frontend/src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/config.ts b/frontend/src/config.ts index 505c1cc..789af52 100644 --- a/frontend/src/config.ts +++ b/frontend/src/config.ts @@ -5,7 +5,7 @@ interface Config { } async function loadConfig(): Promise { - const response = await fetch('./config.json') + const response = await fetch(__webpack_public_path__ + 'config.json') const config = await response.json() return config }