Skip to content
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

try our hand at editing some next configs #45

Merged
merged 4 commits into from
Aug 30, 2023
Merged

Conversation

mmcc
Copy link
Contributor

@mmcc mmcc commented Aug 29, 2023

This gets weird, but it was a common request for us to just shoot our next config shot. So here you go.

} else if (e.error === 'already_added') {
changes.push([log.info, 'It seems like next-video is already added to your Next Config']);
} else {
changes.push([log.error, 'Failed to update next.config.js, please add next-video to your config manually.']);
Copy link
Contributor

Choose a reason for hiding this comment

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

When we have the "manual install guide" we should add a link to that here.

const COMMON_TEMPLATE = `

// Everything below here added by the ${PACKAGE_NAME} CLI wizard.
// You should probably clean this up.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is pretty creative. Does your average next.js user actually care, or should this be more like "feel free to clean this up"?

src/cli/lib/next-config.ts Outdated Show resolved Hide resolved
@mmcc mmcc merged commit 5c869ea into main Aug 30, 2023
2 checks passed
@mmcc mmcc deleted the mmcc/auto-add-next-config branch August 30, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants