DEV Community

Cover image for OpenNext on Cloudflare deploy: green build, 500 live
Georgi Kalchev
Georgi Kalchev

Posted on Originally published at aiskills402.com

OpenNext on Cloudflare deploy: green build, 500 live

Why a Next.js deploy to Cloudflare through OpenNext can pass while every page fails, a setting vanishes or a DNS record moves, and how to check each.

A deploy of a Next.js app to Cloudflare Workers through OpenNext can finish green and still break the live site, because green covers only two things: the app compiled and the Worker files were uploaded. Nothing in that run asks the new Worker for a page, compares its settings with the old ones or looks at DNS. The loud form of the problem is an update after which every page returns HTTP 500 while the Worker log reports an unexpected call to loadManifest(/.next/server/preview-props.json). The quiet forms are a feature that switched itself off a few days after a deploy, and a DNS record of a custom domain that changed when a CI job shipped. Below are five causes we met on our own sites, how…

Read the full report on AISkills402: https://aiskills402.com/blog/opennext-cloudflare-deploy-green-build-500?utm_source=devto&utm_medium=social

Top comments (0)