The Next.js middlware is a powerful layer sitting between requests and responses that can be customized for redirects, rewrites, and manipulation of headers. Join me as I walk through some of the caveats when integrating with Sitecore.
Unpublishing a page in Sitecore results in the page still rendering in the browser, even after the revalidation period. Depending on your hosting configuration, a different workaround may be appropriate.