Skip to content

fix: Don't create messages declaration file when running next {start,info,telemetry}#1992

Merged
amannn merged 2 commits intomainfrom
fix/restrict-messages-declaration
Aug 21, 2025
Merged

fix: Don't create messages declaration file when running next {start,info,telemetry}#1992
amannn merged 2 commits intomainfrom
fix/restrict-messages-declaration

Conversation

@amannn
Copy link
Copy Markdown
Owner

@amannn amannn commented Aug 21, 2025

When using createMessagesDeclaration, we previously created the declaration for all of these scenarios:

  1. next dev (incl. a watcher)
  2. next build
  3. next typegen (new in Next.js 15.5)
  4. next start
  5. next info
  6. next telemetry

(not for next lint though, because it doesn't consult next.config.js)

The last three items in this list don't really require creating a declaration, so as of this PR we no longer do this.

On the other hand, the newly introduced next typegen comes in really handy to continue creating the declaration.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
next-intl-docs Ready Ready Preview Comment Aug 21, 2025 9:21am
next-intl-example-app-router Ready Ready Preview Comment Aug 21, 2025 9:21am
next-intl-example-app-router-without-i18n-routing Ready Ready Preview Comment Aug 21, 2025 9:21am

@amannn amannn merged commit fd0722a into main Aug 21, 2025
6 checks passed
amannn added a commit that referenced this pull request Sep 4, 2025
@amannn amannn deleted the fix/restrict-messages-declaration branch December 29, 2025 14:34
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.

1 participant