forked from Gitlink/forgeplus-react
修改cdn
This commit is contained in:
parent
22043a0982
commit
a6886e5261
|
@ -22,10 +22,10 @@ const getClientEnvironment = require('./env');
|
||||||
let publicPath = '/react/build/';
|
let publicPath = '/react/build/';
|
||||||
let nodeEnv = process.env.NODE_ENV
|
let nodeEnv = process.env.NODE_ENV
|
||||||
if (nodeEnv === 'testBuild') {
|
if (nodeEnv === 'testBuild') {
|
||||||
publicPath = 'https://testali-cdn.educoder.net/react/build/';
|
publicPath = 'https://testforgeplus.trustie.net/react/build/';
|
||||||
}
|
}
|
||||||
if (nodeEnv === 'production') {
|
if (nodeEnv === 'production') {
|
||||||
publicPath = 'https://ali-cdn.educoder.net/react/build/';
|
publicPath = 'https://forgeplus.trustie.net/react/build/';
|
||||||
}
|
}
|
||||||
const publicUrl = publicPath.slice(0, -1);
|
const publicUrl = publicPath.slice(0, -1);
|
||||||
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
||||||
|
|
Loading…
Reference in New Issue