Skip to content

docs: No Setup Guide For Next.js App Router #5936

Closed

Description

@barziahmed

Area of Improvement

It was extremenly frustrauting to me to not get or see setup guide in docs for Next.js (14) App Router. The current Next.js setup guide is only using Pages Router.

Please fix this as it is a very bad look for tRPC.

Link to related docs

https://trpc.io/docs/client/nextjs/setup

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd be down to file a PR implementing the suggested changes!

Activity

  1. added
    📚 documentation / examples
    on Aug 12, 2024
  2. KATT commented on Aug 19, 2024

    @KATT
    Member

    (Duplicate of #5277)

    We have a blog post of how you can do it in https://trpc.io/blog/trpc-actions, but it isn't a one-size-fits-all type of situation. The aforementioned example doesn't work well if you e.g. also want a React Native app to use the same endpoints.

    In your situation - how did you end up setting up tRPC?

  3. barziahmed commented on Aug 19, 2024

    @barziahmed
    Author

    I didn't intend to use Server Actions, if I use tRPC, I wouldn't use Server Actions, and if I use Server Actions, I wouldn't use tRPC.

    I'm only asking for a guide or doc explaining how to use tRPC (the server and client package) in Next.js 14 App Router, also explaining things like recommended directory structure and best practices.

    Thank you.

  4. github-actions commented on Aug 29, 2024

    @github-actions
    Contributor

    This issue has been locked because we are very unlikely to see comments on closed issues. If you are running into a similar issue, please create a new issue. Thank you.

  5. locked as resolved and limited conversation to collaborators on Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    📚 documentation / examples

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions