mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* Metadata: send address to fetchers once visited Fixes #2723 * fix ts
24 lines
523 B
TypeScript
24 lines
523 B
TypeScript
import type { Feature } from './types';
|
|
|
|
import apis from '../apis';
|
|
import { getEnvValue } from '../utils';
|
|
|
|
const title = 'Address metadata';
|
|
|
|
const config: Feature<{ isAddressTagsUpdateEnabled: boolean }> = (() => {
|
|
if (apis.metadata) {
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: true,
|
|
isAddressTagsUpdateEnabled: getEnvValue('NEXT_PUBLIC_METADATA_ADDRESS_TAGS_UPDATE_ENABLED') !== 'false',
|
|
});
|
|
}
|
|
|
|
return Object.freeze({
|
|
title,
|
|
isEnabled: false,
|
|
});
|
|
})();
|
|
|
|
export default config;
|