|
|
|
|
|
by yamadapc
3522 days ago
|
|
You can just wrap `fetch` with something that knows where your server is. In `Este.js` there's something like: function ensureServerUrl(url) {
// parse and replace with your server url
// in Este you read from a SERVER_URL environment variable
}
function fetch(url, options) {
url = ensureServerUrl(url);
return fetch(url, options);
}
|
|