mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* MegaETH: uptime dashboard Fixes #2906 * basic implementation of mini-blocks * update socket url and time format * update mega eth preset * customize flashblocks name * clean up * update color theme variable for mega eth * [skip ci] don't show alert "scanning new mini-blocks"
19 lines
341 B
TypeScript
19 lines
341 B
TypeScript
import type CspDev from 'csp-dev';
|
|
|
|
import config from 'configs/app';
|
|
|
|
const feature = config.features.megaEth;
|
|
|
|
export function megaEth(): CspDev.DirectiveDescriptor {
|
|
if (!feature.isEnabled) {
|
|
return {};
|
|
}
|
|
|
|
return {
|
|
'connect-src': [
|
|
feature.socketUrl.metrics,
|
|
feature.socketUrl.rpc,
|
|
].filter(Boolean),
|
|
};
|
|
}
|