mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
fix endpoint bug
This commit is contained in:
parent
8b2096600c
commit
f04ab169d6
@ -53,10 +53,12 @@ var config = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var SERVER_URL = process.env.ONION_SERVER_URL || 'http://staging.ascribe.io/';
|
||||||
|
|
||||||
var constants = {
|
var constants = {
|
||||||
BASE_URL: (function () { var baseUrl = process.env.ONION_BASE_URL || '/'; return baseUrl + (baseUrl.match(/\/$/) ? '' : '/'); })(),
|
BASE_URL: (function () { var baseUrl = process.env.ONION_BASE_URL || '/'; return baseUrl + (baseUrl.match(/\/$/) ? '' : '/'); })(),
|
||||||
SERVER_URL: process.env.ONION_SERVER_URL || 'http://staging.ascribe.io/',
|
SERVER_URL: SERVER_URL,
|
||||||
API_ENDPOINT: process.env.ONION_SERVER_URL + 'api/' || 'http://staging.ascribe.io/api/',
|
API_ENDPOINT: SERVER_URL + 'api/' || 'http://staging.ascribe.io/api/',
|
||||||
DEBUG: !argv.production,
|
DEBUG: !argv.production,
|
||||||
CREDENTIALS: 'ZGltaUBtYWlsaW5hdG9yLmNvbTowMDAwMDAwMDAw' // dimi@mailinator:0000000000
|
CREDENTIALS: 'ZGltaUBtYWlsaW5hdG9yLmNvbTowMDAwMDAwMDAw' // dimi@mailinator:0000000000
|
||||||
};
|
};
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
<link rel="stylesheet" href="<%= BASE_URL %>static/css/maps/main.css.map">
|
<link rel="stylesheet" href="<%= BASE_URL %>static/css/maps/main.css.map">
|
||||||
<script>
|
<script>
|
||||||
window.BASE_URL = '<%= BASE_URL %>';
|
window.BASE_URL = '<%= BASE_URL %>';
|
||||||
window.API_ENDPOINT = '<%= API_ENDPOINT %>';
|
|
||||||
window.SERVER_URL = '<%= SERVER_URL %>';
|
window.SERVER_URL = '<%= SERVER_URL %>';
|
||||||
|
window.API_ENDPOINT = '<%= API_ENDPOINT %>';
|
||||||
<% DEBUG && print('window.DEBUG = true'); %>
|
<% DEBUG && print('window.DEBUG = true'); %>
|
||||||
<% DEBUG && print('window.CREDENTIALS = \'' + CREDENTIALS + '\''); %>
|
<% DEBUG && print('window.CREDENTIALS = \'' + CREDENTIALS + '\''); %>
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user