mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* flashblocks tab * add env variables * minor fixes * fix ts * change package for decompressing socket data * design updates * [skip ci] delete unused env * automatic mode switching for table * fix validator schema
18 lines
329 B
TypeScript
18 lines
329 B
TypeScript
import type CspDev from 'csp-dev';
|
|
|
|
import config from 'configs/app';
|
|
|
|
const flashblocksFeature = config.features.flashblocks;
|
|
|
|
export function flashblocks(): CspDev.DirectiveDescriptor {
|
|
if (!flashblocksFeature.isEnabled) {
|
|
return {};
|
|
}
|
|
|
|
return {
|
|
'connect-src': [
|
|
flashblocksFeature.socketUrl,
|
|
],
|
|
};
|
|
}
|