See Template dApp Next.js for live demo.
See documentation
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['@multiversx/sdk-dapp-ui']
};
module.exports = nextConfig;Run the development server on the desired network:
yarn start-testnetor
yarn start-devnetor
yarn start-mainnetRun a production build:
yarn build-testnetor
yarn build-devnetor
yarn build-mainnetand then
yarn startOpen http://localhost:3000 with your browser to see the result.