From 7976de76c9037a2c59481b7588c27b085c99f752 Mon Sep 17 00:00:00 2001 From: Xavier Rutayisire Date: Mon, 30 Oct 2023 10:07:38 +0100 Subject: [PATCH] feat(Next): Support Next.js 14 --- cypress-setup.sh | 2 +- packages/init/src/lib/framework.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress-setup.sh b/cypress-setup.sh index eab1408fcd..c702fc82aa 100755 --- a/cypress-setup.sh +++ b/cypress-setup.sh @@ -26,7 +26,7 @@ else fi rm -rf e2e-projects/cypress-next-app \ -&& yarn dlx --quiet create-next-app@13.5.4 --app --eslint --import-alias '@/*' --no-src-dir --tailwind --typescript --use-npm e2e-projects/cypress-next-app \ +&& yarn dlx --quiet create-next-app@latest --app --eslint --import-alias '@/*' --no-src-dir --tailwind --typescript --use-npm e2e-projects/cypress-next-app \ && yarn dlx --quiet vite-node ./cypress/plugins/addAuth.ts -- ${EMAIL} ${PASSWORD} ${PRISMIC_URL} \ && yarn dlx --quiet vite-node ./cypress/plugins/createRepo.ts -- "${_PRISMIC_REPO}" "${PASSWORD}" "${PRISMIC_URL}" \ && yarn workspaces foreach --include '{@slicemachine/adapter-next,@slicemachine/init,@slicemachine/manager,@slicemachine/plugin-kit,slice-machine-ui,start-slicemachine}' --topological --verbose pack --out "${THIS_DIR}"/e2e-projects/cypress-next-app/%s-%v.tgz \ diff --git a/packages/init/src/lib/framework.ts b/packages/init/src/lib/framework.ts index 892f6604e7..a28a7c764a 100644 --- a/packages/init/src/lib/framework.ts +++ b/packages/init/src/lib/framework.ts @@ -104,7 +104,7 @@ export const FRAMEWORKS: Record = { prismicDocumentation: "https://prismic.dev/init/next-11-13", adapterName: "@slicemachine/adapter-next", compatibility: { - next: "^11.0.0 || ^12.0.0 || ^13.0.0", + next: "^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0", }, devDependencies: { ...DEFAULT_DEV_DEPENDENCIES,