feat: force port 3000 to make Next.js abort startup on multiple instances clashing on same port

This commit is contained in:
Christel Westerberg
2024-04-16 11:37:26 +02:00
committed by Michael Zetterberg
parent 7dc07c256c
commit b738023a43
4 changed files with 10 additions and 3 deletions

View File

@@ -10,6 +10,8 @@ import { transformer } from "@/server/transformer"
import { trpc } from "./client"
function initializeTrpcClient() {
// Locally we set nextjs to run on port to 3000 so that we always guarantee
// that trpc and next are running on the same port.
return trpc.createClient({
links: [
httpBatchLink({