Closed
Description
What is the improvement or update you wish to see?
My wrong code has led me to an error logging that should an invalid URL for the Nextjs app router docs.
here is the error logged:
It is not allowed to define inline "use server" annotated Server Actions in Client Components.
| To use Server Actions in a Client Component, you can either export them from a separate file with "use server" at the top, or pass them down through props from a Server Component.
|
| Read more: https://nextjs.org/docs/app/api-reference/server-actions#with-client-components
|
But the problem here is the provided URL is not a valid page:
https://nextjs.org/docs/app/api-reference/server-actions#with-client-components
I believe it should be referencing this page covering server actions:
https://nextjs.org/docs/app/api-reference/functions/server-actions#with-client-components
Is there any context that might help us understand?
this could lead to people not being able to find the proper documentation although it exists
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/app/api-reference/functions/server-actions#with-client-components