graph migration: part 1

This commit is contained in:
g1nt0ki
2024-06-12 21:40:06 +02:00
parent 430b4399d9
commit 6cc412ffcb
16 changed files with 101 additions and 249 deletions

View File

@@ -27,7 +27,7 @@ const currentCacheVersion = sdk.cache.currentVersion // load env for cache
if (process.env.LLAMA_SANITIZE)
Object.keys(process.env).forEach((key) => {
if (key.endsWith('_RPC')) return;
if (['TVL_LOCAL_CACHE_ROOT_FOLDER', 'LLAMA_DEBUG_MODE', ...ENV_KEYS].includes(key) || key.includes('SDK')) return;
if (['TVL_LOCAL_CACHE_ROOT_FOLDER', 'LLAMA_DEBUG_MODE', 'GRAPH_API_KEY', ...ENV_KEYS].includes(key) || key.includes('SDK')) return;
delete process.env[key]
})
process.env.SKIP_RPC_CHECK = 'true'