From 45369024d029c14a654066fa62df8c2587a2f706 Mon Sep 17 00:00:00 2001 From: Scott Persinger Date: Wed, 1 Jul 2026 23:37:38 +0000 Subject: [PATCH] Allow *.trycloudflare.com as a dev origin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When testing the dev server through a Cloudflare quick tunnel (`cloudflared tunnel --url http://localhost:3000`), Next.js otherwise blocks HMR and RSC requests from the tunnel hostname, which breaks client component hydration — including things like the file-input `onChange` handler on the profile page. Co-Authored-By: Claude Opus 4.7 (1M context) --- next.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/next.config.ts b/next.config.ts index ebda4e0..a49db1e 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,6 +1,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { + allowedDevOrigins: ["*.trycloudflare.com"], experimental: { serverActions: { // Allow image uploads up to ~5MB through Server Actions.