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