Skip to content

Commit

Permalink
Bugs/fix undefined (#938)
Browse files Browse the repository at this point in the history
* fix undefined from PUBLIC_URL

* update env var reference
  • Loading branch information
sebastianscatularo authored Jul 19, 2024
1 parent 0a76a11 commit f061612
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ jobs:
- name: Build Custom Wormhole Connect Loader
env:
PUBLIC_URL: ${{ inputs.public-url }}
VITE_PUBLIC_URL: ${{ inputs.public-url }}
VITE_APP_VERSION: ${{ steps.set-version.outputs._PKG_VERSION }}
VITE_APP_CLUSTER: ${{ vars.REACT_APP_CLUSTER }}
# VITE_APP_JS_WC_INTEGRITY_SHA_384: ${{ steps.wormhole-connect.outputs._JS_SHA_384 }}
Expand Down Expand Up @@ -285,6 +286,7 @@ jobs:
- name: Build Custom Wormhole Connect Loader
env:
PUBLIC_URL: "${{ inputs.public-url }}"
VITE_PUBLIC_URL: ${{ inputs.public-url }}
VITE_APP_VERSION: ${{ steps.set-version.outputs._PKG_VERSION }}
VITE_APP_CLUSTER: ${{ vars.REACT_APP_CLUSTER }}
# VITE_APP_JS_WC_INTEGRITY_SHA_384: ${{ steps.wormhole-connect.outputs._JS_SHA_384 }}
Expand Down
6 changes: 3 additions & 3 deletions apps/connect/src/env/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const MAINNET_RPCS = {
solana: "https://wormhole.rpcpool.com/",
};

export const PUBLIC_URL = envVars.PUBLIC_URL || "";
export const PUBLIC_URL = envVars.VITE_PUBLIC_URL || "";

export const versions: Env["versions"] = [
{
Expand All @@ -60,12 +60,12 @@ export const wormholeConnectConfigCommon: Partial<WormholeConnectConfig> = {
menu: [
{
label: "Advanced Tools",
href: `${envVars.PUBLIC_URL}/advanced-tools/`,
href: `${PUBLIC_URL}/advanced-tools/`,
order: 1,
},
{
label: "Privacy Policy",
href: `${envVars.PUBLIC_URL}/#/privacy-policy/`,
href: `${PUBLIC_URL}/#/privacy-policy/`,
},
],
};
Expand Down

0 comments on commit f061612

Please sign in to comment.