From 45a80edf9bd40128dde64eaed6e9d53c3719dc0d Mon Sep 17 00:00:00 2001 From: 0xChijioke Date: Wed, 4 Sep 2024 10:24:50 +0100 Subject: [PATCH] config and web3 instance --- packages/nextjs/helpers/web3Auth.ts | 3 +-- packages/nextjs/next.config.js | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/nextjs/helpers/web3Auth.ts b/packages/nextjs/helpers/web3Auth.ts index 7c842d1..669772f 100644 --- a/packages/nextjs/helpers/web3Auth.ts +++ b/packages/nextjs/helpers/web3Auth.ts @@ -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"; @@ -14,7 +13,7 @@ export const getWeb3AuthInstance = async (): Promise => { 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, diff --git a/packages/nextjs/next.config.js b/packages/nextjs/next.config.js index d765869..8640547 100644 --- a/packages/nextjs/next.config.js +++ b/packages/nextjs/next.config.js @@ -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;