feat: force port 3000 to make Next.js abort startup on multiple instances clashing on same port
This commit is contained in:
committed by
Michael Zetterberg
parent
7dc07c256c
commit
b738023a43
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user