There are a few different ways to handle pages in Next.js and this example site shows you a few ways this can be done on Azure Static Web Apps (ASWA's) - The free service currently in preview from Microsoft.
Azure Static Web Apps don't use a server at run time; because of this it can only serve static pages which were pre-rendered at build time! Something Next.js does using `next export`.