Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Dec 5, 2023
1 parent 185d4e5 commit d8bd176
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/connect/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import theme from "./theme/portal.ts";
import Background from "./components/atoms/Background.tsx";
import App from "./App.tsx";

if (redirects) {
if (redirects && redirects?.source?.length > 0) {
const matcher = new RegExp(redirects.source.join("|"));
if (matcher.test(window.location.hash)) {
window.location.href = `${redirects.target}${window.location.hash}`;
Expand Down
1 change: 1 addition & 0 deletions apps/connect/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const MAINNET_RPCS = {
export default defineConfig({
base: process.env.PUBLIC_URL || '',
define: {
redirects: {},
wormholeConnectConfig: {
env: process.env.VITE_APP_CLUSTER || 'mainnet',
...(process.env.VITE_APP_CLUSTER === 'mainnet' ? MAINNET_RPCS : {}),
Expand Down

0 comments on commit d8bd176

Please sign in to comment.