Files
zeekay 84af44a4f5 fix: remove all user-visible Blockscout references
- Issue URL → github.com/luxfi/explore
- API docs links → docs.lux.network
- Contract verification → local route instead of vera.blockscout.com
- Discord link → discord.gg/luxnetwork
- JSON-LD script ID → lux-explorer-product-schema
- RPC API description → Lux Network branding
- Rollbar instance → .lux.network domain support
2026-03-02 10:43:36 -08:00

44 lines
1.1 KiB
TypeScript

import type { Feature } from './types';
import app from '../app';
import { getEnvValue } from '../utils';
const clientToken = getEnvValue('NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN');
const instance = (() => {
const envValue = getEnvValue('NEXT_PUBLIC_APP_INSTANCE');
if (envValue) {
return envValue;
}
return app.host?.replace('.lux.network', '').replace('.lux.network', '').replace('.k8s-dev', '').replaceAll('-', '_');
})();
const environment = getEnvValue('NEXT_PUBLIC_APP_ENV') || 'production';
const codeVersion = getEnvValue('NEXT_PUBLIC_GIT_TAG') || getEnvValue('NEXT_PUBLIC_GIT_COMMIT_SHA');
const title = 'Rollbar error monitoring';
const config: Feature<{
clientToken: string;
environment: string;
instance: string | undefined;
codeVersion: string | undefined;
}> = (() => {
if (!app.isPrivateMode && clientToken) {
return Object.freeze({
title,
isEnabled: true,
clientToken,
environment,
instance,
codeVersion,
});
}
return Object.freeze({
title,
isEnabled: false,
});
})();
export default config;