Skip to content

feat: try to generate stable build ids #606

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
Aug 17, 2021
Merged

Conversation

ascorbic
Copy link
Contributor

By default Next.js generates random build IDs. This means that every build will generate changed files, which means they need to be deployed every time. This PR changes the generated next.config.js to use a static build ID, and adds an onPostBuild check that logs a warning if it's using random IDs.

Fixes #604

@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Aug 17, 2021
Copy link

@ingride ingride left a comment

Choose a reason for hiding this comment

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

looks good to me

🚉

@ascorbic ascorbic merged commit 92e0990 into main Aug 17, 2021
@ascorbic ascorbic deleted the feat/stable-build-ids branch August 17, 2021 14:46
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.

Generate stable build IDs
2 participants