xdevguild / nextjs-dapp-template

Open source Next.js app template for the MultiversX blockchain. Including Shadcn UI and Tailwind.
https://multiversx-nextjs-dapp.netlify.app
MIT License
47 stars 16 forks source link

Make public API masking optional #19

Closed janniksam closed 1 year ago

janniksam commented 1 year ago

By removing / commenting out the enviroment variable NEXT_PUBLIC_MULTIVERSX_API the maskin of the public MultiversX api can be disabled. When masking is disabled all api requests done by the dapp will go directly to the public api endpoint.

Further more I've simplified the access to the active network configuration. We can use activeNetworkConfiguration-method to get the active network configuration, if we don't want to retrieve a specific configuration for a given chainType.

Fixes #18

netlify[bot] commented 1 year ago

Deploy request for multiversx-nextjs-dapp pending review.

Visit the deploys page to approve it

Name Link
Latest commit 027fdb94fd5e50b648fa7bdb1667d2d9d8703c95