Merge branch 'main' into 'main'

Fix reading features.json at build time

See merge request soapbox-pub/soapbox!3374
main
Alex Gleason 2025-07-31 19:28:58 +00:00
commit 34b890352b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;
};