Skip to content

Commit

Permalink
add slash for empty base url support (#600)
Browse files Browse the repository at this point in the history
* add slash for empty base url support

* add BASE URL

* run prettier
  • Loading branch information
sebastianscatularo authored Dec 14, 2023
1 parent b6b8a21 commit ce4a904
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
env:
PUBLIC_URL: "/${{ env._BRANCH_NAME_SHA }}"
NODE_OPTIONS: "--max-old-space-size=10240"
REACT_APP_BASE_URL: /${{ env._BRANCH_NAME_SHA }}
REACT_APP_CLUSTER: ${{ vars.REACT_APP_CLUSTER }}
REACT_APP_SOLANA_API_URL: ${{ vars.REACT_APP_SOLANA_API_URL }}
REACT_APP_COVALENT_API_KEY: ${{ secrets.REACT_APP_COVALENT_API_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
env:
PUBLIC_URL: "/${{ env._BRANCH_NAME_SHA }}"
NODE_OPTIONS: "--max-old-space-size=10240"
REACT_APP_BASE_URL: /${{ env._BRANCH_NAME_SHA }}
REACT_APP_CLUSTER: testnet
REACT_APP_SOLANA_API_URL: ${{ vars.REACT_APP_SOLANA_API_URL }}
REACT_APP_COVALENT_API_KEY: ${{ secrets.REACT_APP_COVALENT_API_KEY }}
Expand Down
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function App() {
>
<Toolbar>
<Link
href={`${process.env.REACT_APP_BASE_URL}`}
href={`${process.env.REACT_APP_BASE_URL}/`}
className={classes.brandLink}
>
<img src={Portal} alt="Portal" className={classes.wormholeIcon} />
Expand All @@ -216,7 +216,7 @@ function App() {
<Hidden implementation="css" xsDown>
<div style={{ display: "flex", alignItems: "center" }}>
<Link
href={`${process.env.REACT_APP_BASE_URL}`}
href={`${process.env.REACT_APP_BASE_URL}/`}
color="inherit"
className={classes.link}
>
Expand Down Expand Up @@ -247,7 +247,7 @@ function App() {
Cosmos
</Link>
<Link
href={`${process.env.REACT_APP_BASE_URL}docs`}
href={`${process.env.REACT_APP_BASE_URL}/docs`}
target="_blank"
rel="noopener noreferrer"
color="inherit"
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/SolanaWalletContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getWrappedWallets = (): Wallet[] => {
new TorusWalletAdapter(),
new ExodusWalletAdapter(),
new BraveWalletAdapter(),
new BloctoWalletAdapter()
new BloctoWalletAdapter(),
];

const network =
Expand Down

0 comments on commit ce4a904

Please sign in to comment.