dev_aliyun_beta
hjm 6 years ago
parent 0ba1584130
commit e96286c24a

@ -203,11 +203,12 @@ function generateNewIndexJsp() {
<script>
(function() {
var _host = ''
/*
if (window.location.host == 'pre-newweb.educoder.net') {
_host = 'https://testali-cdn.educoder.net/react/build/'
} else if (window.location.host == 'www.educoder.net') {
_host = 'https://ali-newweb.educoder.net/react/build/'
}
}*/
document.write('<script type="text/javascript" src="' + _host + 'js/js_min_all.js"><\\/script>');
document.write('<script type="text/javascript" src="' + _host + 'static/js/main.${matchResult[1]}.js"><\\/script>');
})()

@ -1,6 +1,6 @@
/*global __webpack_public_path__ */
if (window.location.host == 'pre-newweb.educoder.net') {
if (window._enableCDN && window.location.host == 'pre-newweb.educoder.net') {
__webpack_public_path__ = 'http://testali-cdn.educoder.net/react/build/'
} else if (window.location.host == 'www.educoder.net') {
} else if (window._enableCDN && window.location.host == 'www.educoder.net') {
__webpack_public_path__ = 'https://ali-newweb.educoder.net/react/build/'
}
Loading…
Cancel
Save