Adjust train detail dtop box to space out PIS details

This commit is contained in:
Fred Boniface
2024-02-05 21:07:56 +00:00
parent b9f5f3dc1d
commit 9cd082193b
3 changed files with 50 additions and 22 deletions

View File

@@ -1,9 +1,12 @@
import { dev } from '$app/environment';
const testUrl: string = 'http://localhost:8460'
const prodUrl: string = 'https://owlboard.info'
export function getApiUrl() {
if (dev) {
console.info('DEVMODE active, using testing URL');
return 'http://localhost:8460';
console.info('DEVMODE active, using testing URL: ', testUrl);
return testUrl;
}
return 'https://owlboard.info';
return prodUrl;
}