Skip to content

multiversx/mx-template-dapp-nextjs

Repository files navigation

MultiversX dApp based on Next.js and @multiversx/sdk-dapp

See Template dApp Next.js for live demo.

Setup next.config.js.

See documentation

   /** @type {import('next').NextConfig} */
   const nextConfig = {
      transpilePackages: ['@multiversx/sdk-dapp']
   };

   module.exports = nextConfig;

Getting Started

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.