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

@@ -15,10 +15,10 @@ api:
all/remote:
ENVIRONMENT=remote
mkdir -p logs
mkdir -p ~/logs
bun run dev 2>&1 | tee ~/logs/`date '+%d-%m-%Y_%H:%M:%S'`.log
all:
ENVIRONMENT=remote
mkdir -p logs
mkdir -p ~/logs
bun run dev 2>&1 | tee ~/logs/`date '+%d-%m-%Y_%H:%M:%S'`.log

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/"
}