t
tRPC
t
tRPC
Deploying and using api in Vercel results in 404
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
S
sachin
•
11/19/22, 4:56 PM
need more info to help
S
sachin
•
11/19/22, 4:56 PM
likely not a trpc issue
S
sachin
•
11/19/22, 4:56 PM
trpc would never cause a 404 error
H
HonestCode
like what?
S
sachin
•
11/19/22, 5:03 PM
things that would be required to make a bug report on the repo
:
https://github.com/trpc/trpc/issues/new?assignees=&labels=%F0%9F%90%9B+bug%3A+unconfirmed&template=1.bug_report.yml&title=bug%3A+
S
sachin
•
11/19/22, 5:03 PM
we need to be able to reproduce it
S
sachin
•
11/19/22, 5:04 PM
if you have a repo you could share that
'd work great
S
sachin
•
11/19/22, 5:05 PM
well we still need something more to help you
H
HonestCode
```ts function getBaseUrl() { if (typeof window !== 'undefined') // browse...
S
sachin
•
11/19/22, 5:05 PM
no issues here
S
sachin
•
11/19/22, 5:10 PM
could you share the repo
?
S
sachin
•
11/19/22, 5:11 PM
is it private
?
H
HonestCode
um, not really unless i could maybe create one without most of the code?
S
sachin
•
11/19/22, 5:11 PM
ok yeah i
'd try doing this then
S
sachin
•
11/19/22, 5:12 PM
also helps you try to isolate the issue
S
sachin
•
11/19/22, 5:13 PM
yes
S
sachin
•
11/19/22, 5:23 PM
yes
S
sachin
•
11/19/22, 5:28 PM
oh yeah you need to set your own
DATABASE_URL
DATABASE_URL
in vercel settings
S
sachin
•
11/19/22, 5:28 PM
so you
'll need to provision your own db somewhere
Next page