Skip to content

Commit

Permalink
fix gzip command
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Mar 12, 2024
1 parent a8321e4 commit 0c68646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/connect/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}/`;
Expand Down

0 comments on commit 0c68646

Please sign in to comment.