You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add next.js version check and fail the build if version not satisfied (#291)
* chore: clean clean-package package.json field
* test: add smoke tests with multiple next versions in monorepo
* feat: add next.js version check and bail early if not satisfied
* refactor: move version check to assembling handler function so that we don't have to handle figuring out where to resolve next from
* test: add integration tests for additional verification checks
* chore: revert useless change
* test: handle win32 path sep in assertion regex
* test: cleanup fixtures after using them in deploy/smoke tests
* test: update comment that was wrong after c&p from another test
* test: remove weird empty import
* test: prepare new fixture for running tests against multiple next versions
* use 'latest' in new smoke tests
* fix: actually resolve from standalone context
* fix: actually check for standalone dir first
// this error at this point is problem in runtime and not user configuration
45
+
ctx.failBuild(
46
+
`Failed creating server handler. required-server-files.json file not found at expected location "${reqServerFilesPath}". Your repository setup is currently not yet supported.`,
`@netlify/plugin-next@5 requires Next.js version ${SUPPORTED_NEXT_VERSIONS}, but found ${nextVersion}. Please upgrade your project's Next.js version.`,
'Failed creating server handler. required-server-files.json file not found at expected location ".+/apps/site/.next/standalone/apps/site/.next/required-server-files.json". Your repository setup is currently not yet supported.',
123
+
),
124
+
)
125
+
126
+
// TODO: above test body should be removed and following line uncommented and test title updated once the issue is fixed
'Failed creating server handler. required-server-files.json file not found at expected location ".+/apps/site/.next/standalone/apps/site/.next/required-server-files.json". Your repository setup is currently not yet supported.',
146
+
),
147
+
)
148
+
149
+
// TODO: above test body should be removed and following line uncommented and test title updated once the issue is fixed
0 commit comments