-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: check node version in next config #1608
Conversation
🦋 Changeset detectedLatest commit: 34f44d7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://create-t3-app-git-check-node-version-t3-oss.vercel.app/ |
I think 18.13 should be fine, if it's the same bug we had for uploadthing with the fetch api could we not just set the engines field in package json instead? |
if (!major || !minor) { | ||
throw new Error(`Unable to parse Node version: ${nodeVersion}`); | ||
} | ||
if (major < 18 || (major === 18 && minor < 6) || (major === 19 && minor < 7)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be major === 18 && minor < 16
?
Same on cli/template/extras/config/next-config-appdir.mjs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
16 is EOL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you misread minor
, his check is "<18.6" not "<18.16".
Since you mentioned it, since v19 is also EOL as of 2023-06-01
, should we remove v19 all together and check for v20+?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, thanks :)
i dont think its possible to specify multiple versions? 20 is becoming LTR in a few days, so we could just require that, but would probably mean we also need to update docker docs etc |
"engines": {
"node": "^18.16 || ^19.7 || >=20"
} Doesnt' that work? |
Next just bumped their Node version to |
✅ Checklist
would stop people from running into #1600 (comment)
💯