t
tRPC
Trouble with Vercel and deployment URL - tRPC
N
tRPC
•
2y ago
NicoFish
Trouble with Vercel and deployment URL
Hey I
've been having a problem with nextjs deploying to vercel
. In localhost the calls to the backend are done correctly
, but when deployed
, the calls are made to
https://myvercelurl.vercel.app/deployment_url/api/trpc/....
https://myvercelurl.vercel.app/deployment_url/api/trpc/....
I don
't know why the hell the deployment
_url is inserted there
.
Running in npm
, packages
:
@trpc
/client
:
^10
.45
.0
=
> 10
.45
.1
@trpc
/next
:
^10
.45
.0
=
> 10
.45
.1
@trpc
/react
-query
:
^10
.45
.0
=
> 10
.45
.1
@trpc
/server
:
^10
.45
.0
=
> 10
.45
.1
next
: 14
.1
.0
=
> 14
.1
.0
react
:
^18
=
> 18
.2
.0
typescript
:
^5
=
> 5
.3
.3
If someone could help me I will really appreciate it
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
4,951
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
404 on vercel deployment
L
Lookatallthatspace / ❓-help
2y ago
Vercel maxDuration with tRPC
V
Vengeance / ❓-help
3y ago
Does tRPC work with Clerk and Vercel Edge functions?
X
Xeno / ❓-help
3y ago