修改cdn

This commit is contained in:
sylor_huang@126.com 2020-04-29 15:01:46 +08:00
parent 22043a0982
commit a6886e5261
1 changed files with 2 additions and 2 deletions

View File

@ -22,10 +22,10 @@ const getClientEnvironment = require('./env');
let publicPath = '/react/build/';
let nodeEnv = process.env.NODE_ENV
if (nodeEnv === 'testBuild') {
publicPath = 'https://testali-cdn.educoder.net/react/build/';
publicPath = 'https://testforgeplus.trustie.net/react/build/';
}
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 shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';