Chage CORS server hosting from Heroku to Railway

This commit is contained in:
Przemek Więch 2022-12-02 16:49:01 +01:00
parent f11cae24cb
commit 3060de0a90
3 changed files with 5 additions and 4 deletions

View File

@ -64,7 +64,7 @@ export async function loadFromUrl(
}
const urlToFetch = handleCors
? 'https://topola-cors.herokuapp.com/' + url
? 'https://topola-cors-server.up.railway.app/' + url
: url;
const response = await window.fetch(urlToFetch);

View File

@ -49,7 +49,7 @@ function getApiOptions(handleCors: boolean) {
return handleCors
? {
apiUrl:
'https://topola-cors.herokuapp.com/https://api.wikitree.com/api.php',
'https://topola-cors-server.up.railway.app/https://api.wikitree.com/api.php',
}
: {};
}
@ -826,3 +826,4 @@ export class WikiTreeDataSource implements DataSource<WikiTreeSourceSpec> {
}
}
}

View File

@ -67,8 +67,8 @@ export function UrlMenu(props: Props) {
}
values={{
link: (
<a href="https://topola-cors.herokuapp.com/">
topola-cors.herokuapp.com
<a href="https://topola-cors-server.up.railway.app/">
topola-cors-server.up.railway.app
</a>
),
}}