mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
* prototype * fetch video poster from ipfs * add a constraint to the asset type * add ENV variable * fix tests * [skip ci] clean up
17 lines
321 B
TypeScript
17 lines
321 B
TypeScript
import type CspDev from 'csp-dev';
|
|
|
|
import config from 'configs/app';
|
|
|
|
export function helia(): CspDev.DirectiveDescriptor {
|
|
if (!config.UI.views.nft.verifiedFetch.isEnabled) {
|
|
return {};
|
|
}
|
|
|
|
return {
|
|
'connect-src': [
|
|
'https://delegated-ipfs.dev',
|
|
'https://trustless-gateway.link',
|
|
],
|
|
};
|
|
}
|