Closed nemanjastanic closed 9 months ago
System: OS: macOS 14.0 CPU: (8) arm64 Apple M1 Memory: 107.31 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm pnpm: 8.6.2 - /opt/homebrew/bin/pnpm bun: 0.7.3 - /opt/homebrew/bin/bun
When you use Standard Deployment Protection (default and recommended by Vercel), VERCEL_URL is now undefined. This breaks tRPC since the getUrl function falls back to http://localhost:3000.
VERCEL_URL
getUrl
http://localhost:3000
This is due to a recent change (Vercel Docs)
Unnecessary
Standard Protection
No response
Looks like a dupe of #1639
server calls no longer use http so i believe this issue is "automatically" resolved - reopen if you still have issues
Provide environment information
System: OS: macOS 14.0 CPU: (8) arm64 Apple M1 Memory: 107.31 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm pnpm: 8.6.2 - /opt/homebrew/bin/pnpm bun: 0.7.3 - /opt/homebrew/bin/bun
Describe the bug
When you use Standard Deployment Protection (default and recommended by Vercel),
VERCEL_URL
is now undefined. This breaks tRPC since thegetUrl
function falls back tohttp://localhost:3000
.This is due to a recent change (Vercel Docs)
Reproduction repo
Unnecessary
To reproduce
Standard Protection
Additional information
No response