Open OishikGuha opened 1 year ago
I am using react NextJS's api route to make a client using mexc's sdk. This is my code:
import * as Mexc from "../../../../mexc-sdk" export const GET = async (request) => { const client = Mexc.Spot(process.env.NEXT_PUBLIC_MEXC_ACCESSKEY, process.env.MEXC_SECRETKEY, { baseURL: 'https://api.mexc.com' }) // console.log(client) return new Response("Yo.", { status: 200 }) }
But whenever I fetch this api route, it gives me this error:
I am using react NextJS's api route to make a client using mexc's sdk. This is my code:
But whenever I fetch this api route, it gives me this error: