Update src/trpc.ts

This commit is contained in:
Moritz Utcke
2024-11-04 17:27:38 +11:00
parent 5d4a2cee96
commit 9dd1a55940
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import { Buffer } from 'buffer';
let url: string = 'http://localhost:3001/';
if (process.env.ENVIRONMENT === "remote") {
if (typeof window !== "undefined" && window.location.hostname !== "localhost") {
url = "http://api.ibcornelsen.de/"
}