Skip to content

Conversation

makandrr
Copy link

What?

Updated Zod syntax to v4 conventions in documentation examples.

Why?

Zod 4 deprecates message parameter in favor of error, and string format methods like .email() in favor of top-level functions like z.email().

How?

  • Replaced { message: '...' } with { error: '...' }
  • Changed z.string().email() to z.email()

@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Oct 12, 2025
@ijjk
Copy link
Member

ijjk commented Oct 12, 2025

Allow CI Workflow Run

  • approve CI run for commit: d102377

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Related to Next.js' official documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants