chore: whoops

This commit is contained in:
Kaname 2022-09-11 17:56:12 -06:00 committed by GitHub
parent e689be552b
commit 2c4bfab01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -46,8 +46,8 @@ export function getAPIUrl() {
return `https://${process.env.CODESANDBOX_HOST.replace(/\$PORT/, '3001')}`; return `https://${process.env.CODESANDBOX_HOST.replace(/\$PORT/, '3001')}`;
} }
return isDev return isDev
? 'https://kaname-png-coolify-vrgj9w6jq5x2xxxv-3001.githubpreview.dev' ? 'http://localhost:3001'
: 'https://kaname-png-coolify-vrgj9w6jq5x2xxxv-3000.githubpreview.dev'; : 'http://localhost:3000';
} }
export function getUIUrl() { export function getUIUrl() {
@ -59,7 +59,7 @@ export function getUIUrl() {
if (process.env.CODESANDBOX_HOST) { if (process.env.CODESANDBOX_HOST) {
return `https://${process.env.CODESANDBOX_HOST.replace(/\$PORT/, '3000')}`; return `https://${process.env.CODESANDBOX_HOST.replace(/\$PORT/, '3000')}`;
} }
return 'https://kaname-png-coolify-vrgj9w6jq5x2xxxv-3000.githubpreview.dev'; return 'http://localhost:3000';
} }
const mainTraefikEndpoint = isDev const mainTraefikEndpoint = isDev

View File

@ -11,8 +11,8 @@ export function getAPIUrl() {
return `https://${CODESANDBOX_HOST.replace(/\$PORT/, '3001')}`; return `https://${CODESANDBOX_HOST.replace(/\$PORT/, '3001')}`;
} }
return dev return dev
? 'https://kaname-png-coolify-vrgj9w6jq5x2xxxv-3001.githubpreview.dev' ? 'http://localhost:3001'
: 'https://kaname-png-coolify-vrgj9w6jq5x2xxxv-3000.githubpreview.dev'; : 'http://localhost:3000';
} }
export function getWebhookUrl(type: string) { export function getWebhookUrl(type: string) {
if (GITPOD_WORKSPACE_URL) { if (GITPOD_WORKSPACE_URL) {