Skip to content

Commit

Permalink
feat: change default network to mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
fearlessfe committed Sep 14, 2024
1 parent c76918e commit af3e33c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const nextConfig = {
return [
{
source: "/index/:path*",
destination: "http://65.109.69.98:7700/:path*", // Proxy to Backend, token required
destination: "http://65.109.69.98:7701/:path*", // Proxy to Backend, token required
},
// {
// source: "/indexMain/:path*",
Expand All @@ -18,11 +18,11 @@ const nextConfig = {
// },
{
source: "/api/:path*",
destination: "http://65.109.69.98:9001/:path*", // Proxy to Backend
destination: "http://65.109.69.98:9002/:path*", // Proxy to Backend
},
{
source: "/docs/:path*",
destination: "http://65.109.69.98:9001/:path*", // Proxy to Backend, token required
destination: "http://65.109.69.98:9002/:path*", // Proxy to Backend, token required
},
// {
// source: "/apiMain/:path*",
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useNetworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useMemo } from "react";

export const useNetworkConfig = (): NetworkConfig => {
const host = window?.location?.host;
const defaultNetwork = networkConfigs["sepolia"];
defaultNetwork.network = "sepolia";
const defaultNetwork = networkConfigs["mainnet"];
defaultNetwork.network = "mainnet";
const config = useMemo(() => {
for (const key of Object.keys(networkConfigs)) {
const val = networkConfigs[key as Network];
Expand Down

0 comments on commit af3e33c

Please sign in to comment.