The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
yarn build && arweave deploy build/index.html --key-file <path to your keyfile>
smartweave create ./contracts/immortagram.js ./contracts/initialState.json --key-file <path to your keyfile>
Run
arweave status <txn Id>
to view status