|
@@ -9,7 +9,7 @@ import routes from './routes';
|
|
|
const { REACT_APP_ENV } = process.env;
|
|
|
// let envValus = REACT_APP_ENV.split('-');
|
|
|
// let env = envValus[0];
|
|
|
-// console.log('env', REACT_APP_ENV);
|
|
|
+console.log('env', REACT_APP_ENV);
|
|
|
//debugger;
|
|
|
export default defineConfig({
|
|
|
hash: true,
|
|
@@ -50,8 +50,8 @@ export default defineConfig({
|
|
|
title: false,
|
|
|
ignoreMomentLocale: true,
|
|
|
base: '/sgadmin/',
|
|
|
- publicPath: '/sgadmin/',
|
|
|
- outputPath: 'sgadmin',
|
|
|
+ publicPath: REACT_APP_ENV === 'pro' ? '/sgadmin/' : '/',
|
|
|
+ outputPath: 'dist',
|
|
|
proxy: proxy[REACT_APP_ENV || 'dev'],
|
|
|
manifest: {
|
|
|
basePath: '/sgadmin',
|