diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 2442bc11f..aa5b6a5b6 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -26,7 +26,7 @@ jobs: connect-branch: development advanced-tools-branch: advanced-tools environment: Cloudflare-Preview - public-url: "" + public-url: "/${{ needs.branch-sha.outputs.value }}" wac-url: "https://wac.gfx.xyz" project-branch: ${{ github.event.pull_request.head.ref }} app-domain: preview.portalbridge.com diff --git a/.github/workflows/testnet.yml b/.github/workflows/testnet.yml index 09e796874..6c9b8b1ad 100644 --- a/.github/workflows/testnet.yml +++ b/.github/workflows/testnet.yml @@ -26,7 +26,7 @@ jobs: connect-branch: development advanced-tools-branch: advanced-tools environment: Cloudflare-Testnet - public-url: "" + public-url: "/${{ needs.branch-sha.outputs.value }}" project-branch: ${{ github.event.pull_request.head.ref }} app-domain: testnet.portalbridge.com secrets: inherit diff --git a/apps/connect/src/components/ConnectLoader.tsx b/apps/connect/src/components/ConnectLoader.tsx index 76996995d..927ae2cb7 100644 --- a/apps/connect/src/components/ConnectLoader.tsx +++ b/apps/connect/src/components/ConnectLoader.tsx @@ -23,7 +23,7 @@ export default function ConnectLoader({ config }: WormholeLoaderProps) { useEffect(() => { const script = document.createElement("script"); - script.src = `assets/wormhole-connect/main.js?id=${VITE_APP_JS_WC_INTEGRITY_SHA_384}`; + script.src = `assets/wormhole-connect/main.js`; script.type = "module"; if (VITE_APP_JS_WC_INTEGRITY_SHA_384) { script.integrity = `sha384-${VITE_APP_JS_WC_INTEGRITY_SHA_384}`; @@ -32,7 +32,7 @@ export default function ConnectLoader({ config }: WormholeLoaderProps) { script.onload = () => setLoading(false); const link = document.createElement("link"); link.rel = "stylesheet"; - link.href = `assets/wormhole-connect/main.css?id=${VITE_APP_CSS_WC_INTEGRITY_SHA_384}`; + link.href = `assets/wormhole-connect/main.css`; if (VITE_APP_CSS_WC_INTEGRITY_SHA_384) { link.integrity = `sha384-${VITE_APP_CSS_WC_INTEGRITY_SHA_384}`; }