From e0b8a1c40214a8451f10a0b82ff099b1750edad2 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 14 Aug 2024 12:42:17 +0200 Subject: [PATCH] Fix build --- scripts/ScriptUtils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/ScriptUtils.ts b/scripts/ScriptUtils.ts index 3c3bd1fe6..b2176b7d3 100644 --- a/scripts/ScriptUtils.ts +++ b/scripts/ScriptUtils.ts @@ -172,6 +172,9 @@ export default class ScriptUtils { headers?: any, timeoutSecs?: number ): Promise<{ content: string } | { redirect: string } | "timeout"> { + if(url.startsWith("./assets")){ + return Promise.resolve({content: readFileSync("./public/"+url, "utf8")}) + } if(url.startsWith("./")){ return Promise.resolve({content: readFileSync(url, "utf8")}) }