Skip to content

Conversation

@ehmicky
Copy link

@ehmicky ehmicky commented Dec 14, 2020

Part of #25.

Instead of always using Next.js 9.5.3 to require next/constants and next/dist/next-server/server/config, this PR re-uses the version of Next.js used in the site.
It the site does not have Next.js installed, or if its version is <9.5.3, the build will fail with an error message.

This was previously reverted by #45. However, thanks to the new plugins installation flow, plugins can now require site's Node.js dependencies, which makes this PR work.

@ehmicky ehmicky added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Dec 14, 2020
@ehmicky ehmicky self-assigned this Dec 14, 2020
@ehmicky ehmicky mentioned this pull request Dec 14, 2020
Copy link

@lindsaylevine lindsaylevine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing!!!!!!!

@ehmicky ehmicky merged commit 541a4a9 into main Dec 14, 2020
@ehmicky ehmicky deleted the feat/next-version branch December 14, 2020 21:02
lindsaylevine added a commit that referenced this pull request Dec 21, 2020
- Fix: use site's Next.js version ([#73](#73))
- Fix: next export unused script mistakenly failed builds ([#72](#72))
- Miscellaneous testing
- Miscellaneous README changes
serhalp pushed a commit that referenced this pull request Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature code contributing to the implementation of a feature and/or user facing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants