@@ -18,7 +18,7 @@ import { useAlert } from "react-alert";
1818import { MetamaskProviderContext } from "@site/src/theme/Root" ;
1919
2020import styles from "./faucet.module.scss" ;
21- import { DASHBOARD_URL , REQUEST_PARAMS } from "@site/src/lib/constants" ;
21+ import { REQUEST_PARAMS } from "@site/src/lib/constants" ;
2222import { AlertBalanceTooLow } from "@site/src/components/Faucet/Alerts" ;
2323import {
2424 trackInputChangeForSegment ,
@@ -44,7 +44,7 @@ export default function Faucet() {
4444 const [ isLineaMaintenance , setIsLineaMaintenance ] = useState ( false ) ;
4545 const [ isSepoliaMaintenance , setIsSepoliaMaintenance ] = useState ( false ) ;
4646 const [ faucetBypassDomain , setFaucetBypassDomain ] = useState ( false ) ;
47- const { DASHBOARD_PREVIEW_URL , VERCEL_ENV } = siteConfig ?. customFields || { } ;
47+ const { DASHBOARD_URL } = siteConfig ?. customFields || { } ;
4848
4949 const isLimitedUserPlan = uksTier === "core" && ! faucetBypassDomain ;
5050
@@ -61,7 +61,7 @@ export default function Faucet() {
6161
6262 const getTransactions = async ( ) => {
6363 const sepolia = await fetch (
64- `${ DASHBOARD_URL ( DASHBOARD_PREVIEW_URL , VERCEL_ENV ) } /api/faucets/sepolia/transactions` ,
64+ `${ DASHBOARD_URL } /api/faucets/sepolia/transactions` ,
6565 {
6666 ...REQUEST_PARAMS ( "GET" , { Authorization : `Bearer ${ token } ` } ) ,
6767 } ,
@@ -70,7 +70,7 @@ export default function Faucet() {
7070 setTransactionsForNetwork ( "sepolia" , sepoliaData ) ;
7171
7272 const linea = await fetch (
73- `${ DASHBOARD_URL ( DASHBOARD_PREVIEW_URL , VERCEL_ENV ) } /api/faucets/linea/transactions` ,
73+ `${ DASHBOARD_URL } /api/faucets/linea/transactions` ,
7474 {
7575 ...REQUEST_PARAMS ( "GET" , { Authorization : `Bearer ${ token } ` } ) ,
7676 } ,
@@ -84,7 +84,7 @@ export default function Faucet() {
8484 const address = walletAddress . trim ( ) ;
8585 try {
8686 const faucetRawResponse = await fetch (
87- `${ DASHBOARD_URL ( DASHBOARD_PREVIEW_URL , VERCEL_ENV ) } /api/faucets/${ network } ?address=${ address } ` ,
87+ `${ DASHBOARD_URL } /api/faucets/${ network } ?address=${ address } ` ,
8888 {
8989 ...REQUEST_PARAMS ( "POST" , { Authorization : `Bearer ${ token } ` } ) ,
9090 body : JSON . stringify ( { dstAddress : address } ) ,
0 commit comments