docs: added a note about server dynamic routes limitation (#21919)

This commit is contained in:
Ali Azimi 2023-07-03 18:43:18 +02:00 committed by GitHub
parent b0daaa8cbb
commit ddb02f6486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,10 @@ export default defineEventHandler(() => 'Hello World!')
Given the example above, the `/hello` route will be accessible at <http://localhost:3000/hello>.
::alert{type=info icon=💡}
Note that currently server routes do not support the full functionality of dynamic routes as [pages](https://nuxt.com/docs/guide/directory-structure/pages#dynamic-routes) do.
::
## Server Middleware
Nuxt will automatically read in any file in the `~/server/middleware` to create server middleware for your project.