Skip to content

Commit

Permalink
config and web3 instance
Browse files Browse the repository at this point in the history
  • Loading branch information
0xChijioke committed Sep 5, 2024
1 parent 8db4eb7 commit 45a80ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/nextjs/helpers/web3Auth.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { tssLib } from "@toruslabs/tss-dkls-lib";
import { UX_MODE } from "@web3auth/base";
import { COREKIT_STATUS, WEB3AUTH_NETWORK, Web3AuthMPCCoreKit } from "@web3auth/mpc-core-kit";
Expand All @@ -14,7 +13,7 @@ export const getWeb3AuthInstance = async (): Promise<Web3AuthMPCCoreKit> => {
web3AuthNetwork: WEB3AUTH_NETWORK.DEVNET,
tssLib: tssLib,
storage: window.localStorage,
baseUrl: "http://localhost:3000",
baseUrl: process.env.NEXT_PUBLIC_DOMAIN || "localhost:3000",
uxMode: UX_MODE.REDIRECT,
manualSync: true,
enableLogging: true,
Expand Down
8 changes: 8 additions & 0 deletions packages/nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ const nextConfig = {
config.externals.push("pino-pretty", "lokijs", "encoding");
return config;
},
logging: {
fetches: {
fullUrl: true,
},
},
images: {
domains: ["lh3.googleusercontent.com"],
},
};

module.exports = nextConfig;

0 comments on commit 45a80ed

Please sign in to comment.