mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-02-18 02:55:48 +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
|
const urlToFetch = handleCors
|
||||||
? 'https://topola-cors.herokuapp.com/' + url
|
? 'https://topola-cors-server.up.railway.app/' + url
|
||||||
: url;
|
: url;
|
||||||
|
|
||||||
const response = await window.fetch(urlToFetch);
|
const response = await window.fetch(urlToFetch);
|
||||||
|
|||||||
@ -49,7 +49,7 @@ function getApiOptions(handleCors: boolean) {
|
|||||||
return handleCors
|
return handleCors
|
||||||
? {
|
? {
|
||||||
apiUrl:
|
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={{
|
values={{
|
||||||
link: (
|
link: (
|
||||||
<a href="https://topola-cors.herokuapp.com/">
|
<a href="https://topola-cors-server.up.railway.app/">
|
||||||
topola-cors.herokuapp.com
|
topola-cors-server.up.railway.app
|
||||||
</a>
|
</a>
|
||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user