Skip to content

Commit c22a2d8

Browse files
committed
Update environment configuration files to replace NEXT_APP_URL with NEXT_PUBLIC_APP_URL for devnet, mainnet, and testnet; modify Header component to use the updated environment variable for the App button link.
1 parent 8bd8761 commit c22a2d8

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.env.production.devnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NEXT_PUBLIC_ENVIRONMENT=devnet
22
NEXT_PUBLIC_URL=https://devnet-explorer.ratio1.ai
3-
NEXT_APP_URL=https://devnet-app.ratio1.ai
3+
NEXT_PUBLIC_APP_URL=https://devnet-app.ratio1.ai
44

55
NEXT_PUBLIC_BACKEND_URL=https://devnet-dapp-api.ratio1.ai
66
NEXT_PUBLIC_ORACLES_URL=https://devnet-oracle.ratio1.ai

.env.production.mainnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NEXT_PUBLIC_ENVIRONMENT=mainnet
22
NEXT_PUBLIC_URL=https://explorer.ratio1.ai
3-
NEXT_APP_URL=https://app.ratio1.ai
3+
NEXT_PUBLIC_APP_URL=https://app.ratio1.ai
44

55
NEXT_PUBLIC_BACKEND_URL=https://dapp-api.ratio1.ai
66
NEXT_PUBLIC_ORACLES_URL=https://oracle.ratio1.ai

.env.production.testnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NEXT_PUBLIC_ENVIRONMENT=testnet
22
NEXT_PUBLIC_URL=https://testnet-explorer.ratio1.ai
3-
NEXT_APP_URL=https://testnet-app.ratio1.ai
3+
NEXT_PUBLIC_APP_URL=https://testnet-app.ratio1.ai
44

55
NEXT_PUBLIC_BACKEND_URL=https://testnet-dapp-api.ratio1.ai
66
NEXT_PUBLIC_ORACLES_URL=https://testnet-oracle.ratio1.ai

app/server-components/Header.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import { CardRounded } from '@/app/server-components/shared/cards/CardRounded';
22
import Navigation from '@/components/Navigation';
33
import { NetworkSelector } from '@/components/NetworkSelector';
44
import config from '@/config';
5+
import { Button } from '@heroui/button';
56
import Image from 'next/image';
67
import Link from 'next/link';
8+
import { RiFunctionLine } from 'react-icons/ri';
79

810
export default async function Header() {
911
return (
@@ -38,18 +40,18 @@ export default async function Header() {
3840
</div>
3941
</CardRounded>
4042

41-
{/* <Button
43+
<Button
4244
className="min-h-10 rounded-full lg:min-h-12"
4345
color="primary"
4446
as={Link}
45-
href={process.env.NEXT_APP_URL}
47+
href={process.env.NEXT_PUBLIC_APP_URL}
4648
target="_blank"
4749
>
4850
<div className="row gap-1.5">
4951
<RiFunctionLine className="text-lg" />
5052
<div className="font-medium">App</div>
5153
</div>
52-
</Button> */}
54+
</Button>
5355
</div>
5456

5557
<div className="flex">

0 commit comments

Comments
 (0)