Skip to content

Improve framework detection #14

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

Merged
merged 1 commit into from
Oct 29, 2020
Merged

Improve framework detection #14

merged 1 commit into from
Oct 29, 2020

Conversation

ehmicky
Copy link

@ehmicky ehmicky commented Oct 29, 2020

This uses the new hasFramework() method from @netlify/framework-info to simplify the framework detection logic.

This PR also removes the framework detection inside onPostBuild since, if the project is not using Next.js, the build would have already failed due to the failBuild() in onPreBuild.

This PR does not fix line indentation in order to make the git diff clearer, but line indentation should probably be fixed after merge.

@ehmicky ehmicky added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Oct 29, 2020
@ehmicky ehmicky requested a review from lindsaylevine October 29, 2020 12:36
@ehmicky ehmicky self-assigned this Oct 29, 2020
@ehmicky ehmicky merged commit 8efbebb into main Oct 29, 2020
@ehmicky ehmicky deleted the feat/has-framework branch October 29, 2020 13:23
ascorbic added a commit that referenced this pull request Oct 4, 2021
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.

2 participants