Update src/trpc.ts
This commit is contained in:
@@ -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/"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user