Skip to content

Commit 686aba1

Browse files
pedrobonaminrexxars
andcommitted
fix(cli): update isUsingNextJs15 check
Co-authored-by: Espen Hovlandsdal <[email protected]>
1 parent fb61699 commit 686aba1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/@sanity/cli/src/actions/init-project/initProject.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ export default async function initSanity(
341341

342342
if (reactVersion) {
343343
const isUsingReact19 = semver.coerce(reactVersion)?.major === 19
344-
const isUsingNextJs15 =
345-
isNextJs && semver.coerce(detectedFramework?.detectedVersion)?.major === 15
344+
const isUsingNextJs15 = semver.coerce(detectedFramework?.detectedVersion)?.major === 15
346345

347346
if (isUsingNextJs15 && isUsingReact19) {
348347
warn('╭────────────────────────────────────────────────────────────╮')

0 commit comments

Comments
 (0)