From 59bdb629661486652c59b6cc9067525a47abd68d Mon Sep 17 00:00:00 2001
From: Jarred Sumner <jarred@jarredsumner.com>
Date: Wed, 3 Nov 2021 01:20:08 -0700
Subject: Fix next version warning

---
 packages/bun-framework-next/server.development.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/bun-framework-next/server.development.tsx')

diff --git a/packages/bun-framework-next/server.development.tsx b/packages/bun-framework-next/server.development.tsx
index d2f8a5d1e..afb6de4f1 100644
--- a/packages/bun-framework-next/server.development.tsx
+++ b/packages/bun-framework-next/server.development.tsx
@@ -4,14 +4,14 @@ import { render } from "./renderDocument";
 
 const { version } = nextPackage;
 if (
-  !version.startsWith("11.1") ||
+  (!version.startsWith("11.1") && !version.startsWith("12.0")) ||
   version === "11.1.0" ||
   version === "11.1.1"
 ) {
   console.warn(
     "Possibly incompatible Next.js version: ",
     version,
-    ". Please upgrade to Next.js 11.1.2 or later.\n"
+    ". Please upgrade to Next.js 11.1.2 or Next.js 12.0.2+.\n"
   );
 }
 
-- 
cgit v1.2.3

