Browse Source

deploy

master
Soleilw 8 months ago
parent
commit
3f80eac5e4
6 changed files with 14 additions and 5 deletions
  1. 5
    0
      .umirc.dev.ts
  2. 5
    0
      .umirc.prod.ts
  3. 1
    1
      dist/index.html
  4. 1
    1
      dist/umi.ed06120e.js
  5. 2
    2
      package.json
  6. 0
    1
      src/constants/index.ts

+ 5
- 0
.umirc.dev.ts View File

@@ -0,0 +1,5 @@
export default {
define: {
'process.env.UMI_ENV': 'development',
}
}

+ 5
- 0
.umirc.prod.ts View File

@@ -0,0 +1,5 @@
export default {
define: {
'process.env.UMI_ENV': 'production',
}
}

+ 1
- 1
dist/index.html View File

@@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.9e229d2b.js"></script>
<script src="/umi.ed06120e.js"></script>
</body>
</html>

dist/umi.ed06120e.js
File diff suppressed because it is too large
View File


+ 2
- 2
package.json View File

@@ -2,8 +2,8 @@
"private": true,
"author": "Soleilw <a617759082@126.com>",
"scripts": {
"build": "cross-env BUILD_ENV=production max build",
"build:env": "cross-env BUILD_ENV=development max build",
"build": "cross-env UMI_ENV=production max build",
"build:env": "cross-env UMI_ENV=development max dev",
"dev": "max dev",
"format": "prettier --cache --write .",
"postinstall": "max setup",

+ 0
- 1
src/constants/index.ts View File

@@ -2,7 +2,6 @@ export const DEFAULT_NAME = 'Umi Max';
export const web: string = '/web';
export const common: string = '/common';
export type StringOptional = string | undefined;
const { BUILD_ENV } = process.env
console.log('BUILD_ENV', process.env)
export const Imageprefix: string = process.env.UMI_ENV == 'production' ? 'https://admin1.jcjob.cn/img/' : 'https://rcsc-test.jcjob.cn/img/'
export const baseUrl: string = process.env.UMI_ENV == 'production' ? 'https://admin1.jcjob.cn/api' : 'https://rcsc-test.jcjob.cn/api'

Loading…
Cancel
Save