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
325 B
TypeScript
18 lines
325 B
TypeScript
import type CspDev from 'csp-dev';
|
|
|
|
import config from 'configs/app';
|
|
|
|
const rollupFeature = config.features.rollup;
|
|
|
|
export function rollup(): CspDev.DirectiveDescriptor {
|
|
if (!rollupFeature.isEnabled) {
|
|
return {};
|
|
}
|
|
|
|
return {
|
|
'connect-src': [
|
|
...(rollupFeature.parentChain.rpcUrls ?? []),
|
|
],
|
|
};
|
|
}
|