From 0c686466562924a9daa2ac6cd64c87eeb0ebcb79 Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Tue, 12 Mar 2024 18:59:30 -0300 Subject: [PATCH] fix gzip command --- apps/connect/vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/connect/vite.config.ts b/apps/connect/vite.config.ts index de96d0aa2..fc92a8b16 100644 --- a/apps/connect/vite.config.ts +++ b/apps/connect/vite.config.ts @@ -3,10 +3,10 @@ import react from '@vitejs/plugin-react-swc' import { viteStaticCopy } from 'vite-plugin-static-copy' import { createHash } from 'crypto' -const __WORMHOLE_CONNECT_LOCATION_HASH__ = createHash('sha384') +const __WORMHOLE_CONNECT_LOCATION_HASH__ = `wc-${createHash('sha384') .update(process.env.VITE_APP_WORMHOLE_CONNECT_VERSION || 'lastest') .digest('hex') - .substring(0, 8); + .substring(0, 8)}` const rpcs = (chains: string[], template: (chain: string) => string) => chains.map((chain: string) => ({ [chain]: template(chain) })).reduce((acc, cur) => ({ ...acc, ...cur }), {}); const asRpcHost = (chain: string) => `https://and76cjzpa.execute-api.us-east-2.amazonaws.com/${chain}/`;