Skip to content

Add documentation note about middleware and runtimes#58873

Merged
leerob merged 2 commits into
vercel:canaryfrom
jpfifer:add-middleware-runtime-documentation
Dec 6, 2023
Merged

Add documentation note about middleware and runtimes#58873
leerob merged 2 commits into
vercel:canaryfrom
jpfifer:add-middleware-runtime-documentation

Conversation

@jpfifer

@jpfifer jpfifer commented Nov 24, 2023

Copy link
Copy Markdown
Contributor

At this time Middleware only supports the Edge runtime. This has caused confusion for users attempting to user Node.js only libraries in Middleware. This simply adds a note that the Node.js runtime cannot be used.

See Switchable Runtime for Middleware for more more information.

Adding this as I've been tripped up by this before, and having it in the documentation should make it easier for others to find.

At this time Middleware only supports the Edge runtime. This has caused confusion for users attempting to user Node.js only libraries in Middleware. This simply adds a note that the Node.js runtime cannot be used.
@jpfifer jpfifer requested review from a team as code owners November 24, 2023 17:09
@jpfifer jpfifer requested review from S3Prototype and StephDietz and removed request for a team November 24, 2023 17:09
Comment thread docs/02-app/01-building-your-application/01-routing/11-middleware.mdx Outdated
@leerob leerob merged commit 3f20b46 into vercel:canary Dec 6, 2023
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants