wobsoriano / trpc-nuxt

End-to-end typesafe APIs in Nuxt applications.
trpc-nuxt.vercel.app
MIT License
687 stars 39 forks source link

Correct plugin code in recommended docs #127

Closed iain-logan closed 10 months ago

iain-logan commented 1 year ago

Since the api (/api/[trpc].ts) is using dynamic route parameters (https://nuxt.com/docs/guide/directory-structure/pages/), the base path for the client needs to just be /api/ to use the correct path.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
trpc-nuxt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2023 11:54pm