The error from metamask is expected due to APP_DOMAIN=amazing.finance
env variable .env
file. Change this value from amazing.finance
to localhost:3000
And then replace code in [...moralis].ts
with this code
import { MoralisNextApi } from "@moralisweb3/next";
export default MoralisNextApi({
apiKey: process.env.MORALIS_API_KEY,
authentication: {
domain: process.env.APP_DOMAIN,
uri: process.env.NEXTAUTH_URL,
timeout: 120,
},
});