Files
tom goriunovandGitHub a6c088065c Metadata: send address to fetchers once visited (#2814)
* Metadata: send address to fetchers once visited

Fixes #2723

* fix ts
2025-06-30 17:44:53 +02:00

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;