mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* zetachain start * zeta chain cctx table * pagination * cctx page init * meta for new route * remove backlink * schema * continue * fix * navigation * filters to test * some fixes * add chain filter * add error message and revert options * address chain logo fix * cctx search * socket * fix conflict * fixes1 * fixes2 * fixes3 * fixes4 * fixes5 * tests * fixes6 * test fixes * revert options fix * stats and revert semi-fix * fix readme * cleanup * check for cctx in lifecycle * update config * fixes 8 * fixes 9 * update config * fixes10
19 lines
426 B
TypeScript
19 lines
426 B
TypeScript
import type CspDev from 'csp-dev';
|
|
|
|
import config from 'configs/app';
|
|
|
|
const zetachainFeature = config.features.zetachain;
|
|
|
|
export function zetachain(): CspDev.DirectiveDescriptor {
|
|
if (!zetachainFeature.isEnabled || !config.apis.zetachain?.socketEndpoint) {
|
|
return {};
|
|
}
|
|
|
|
return {
|
|
'connect-src': [
|
|
`${ config.apis.zetachain.socketEndpoint }/websocket`,
|
|
config.apis.zetachain.endpoint,
|
|
],
|
|
};
|
|
}
|