I am afraid that you will not be able to deploy Nextjs to Netlify without losing functionality.
It should work, meaning that it will not throw errors, with the following netlify.toml
[build]
command = "npm run build && npm run export"
publish = "out"
If you read Nextjs docs on the next export command you will see that you lose a bunch of very interesting Nextjs features.
I moved my app over to Vercel ( Nextjs own deployment structure ) due to this.
See also this discussion