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

add the middleware.ts API reference file convention #61037

Merged
merged 35 commits into from
Jan 30, 2024

Conversation

StephDietz
Copy link
Contributor

@StephDietz StephDietz commented Jan 23, 2024

This PR adds a new docs page under the File Conventions section for themiddleware.ts file. It includes:

  • Explanation of middleware.ts usage in Next.js.
  • Code examples in TypeScript and JavaScript.
  • Information on matcher function, NextResponse, and middleware runtime environment.
  • Version history of middleware feature updates.

@StephDietz StephDietz marked this pull request as ready for review January 24, 2024 01:09
@StephDietz StephDietz requested review from a team as code owners January 24, 2024 01:09
@StephDietz StephDietz requested review from ismaelrumzan and lydiahallie and removed request for a team January 24, 2024 01:09
StephDietz and others added 7 commits January 24, 2024 12:34
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
StephDietz and others added 8 commits January 26, 2024 10:43
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
StephDietz and others added 4 commits January 30, 2024 09:02
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
StephDietz and others added 3 commits January 30, 2024 12:05
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
@StephDietz StephDietz merged commit bc22b21 into canary Jan 30, 2024
30 checks passed
@StephDietz StephDietz deleted the middleware-api-reference branch January 30, 2024 19:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants