mirror of
https://github.com/PeWu/topola-viewer.git
synced 2025-12-23 18:50:04 +00:00
Chage CORS server hosting from Heroku to Railway
This commit is contained in:
parent
f11cae24cb
commit
3060de0a90
@ -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);
|
||||
|
||||
@ -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> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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>
|
||||
),
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user