From 721ae818458445a68e329d62309c3e6c77cf28c4 Mon Sep 17 00:00:00 2001 From: Lez Date: Thu, 24 Jul 2025 15:55:47 +0200 Subject: [PATCH] Fix reading features.json at build time When soapbox source was refactored in commit f9679d270b13bad8383e3a73021f93e6d8c22c32, build-config.ts file was moved one level up. This broke the reading of custom json values, which is now fixed. --- src/custom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom.ts b/src/custom.ts index 96ff58e34..ceec86a62 100644 --- a/src/custom.ts +++ b/src/custom.ts @@ -8,7 +8,7 @@ export const custom = (filename: string, fallback: any = {}): any => { if (BuildConfig.NODE_ENV === 'test') return fallback; const modules = import.meta.glob('../custom/*.json', { eager: true }); - const key = `../../custom/${filename}.json`; + const key = `../custom/${filename}.json`; return modules[key] ? modules[key] : fallback; };