kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'main' into 'main'
Fix reading features.json at build time See merge request soapbox-pub/soapbox!3374main
commit
34b890352b
|
@ -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;
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue