How to handle a mix of public and authenticated pages in Next.js I have a headless WordPress back end with a Next.js front end.