Skip to content

Commit

Permalink
feat: add default demo api, lock umi version, fix node17+ fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tdsszz committed Mar 8, 2024
1 parent aac7890 commit 1bf379e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/client/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ export default {
},
proxy: {
'/api': {
target: 'http://localhost:5000/',
// target: 'http://localhost:5000/',
// target: 'http://circle.ac.cn:5020/',
target: 'https://demo.shopapi.circle.ac.cn/',
changeOrigin: true,
// pathRewrite: { '^/api': '' },
},
Expand Down
7 changes: 4 additions & 3 deletions src/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"private": true,
"scripts": {
"presite": "node ./scripts/generateMock.js && cd functions && npm install",
"start": "cross-env APP_TYPE=site umi dev",
"dev": "npm run start",
"start": "set NODE_OPTIONS=--openssl-legacy-provider && cross-env APP_TYPE=site umi dev",
"start:no-mock": "cross-env MOCK=none umi dev",
"build": "umi build",
"build": "set NODE_OPTIONS=--openssl-legacy-provider && umi build",
"site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy",
"analyze": "cross-env ANALYZE=1 umi build",
"lint:style": "stylelint \"src/**/*.less\" --syntax less",
Expand Down Expand Up @@ -92,7 +93,7 @@
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.10.0",
"tslint-react": "^3.6.0",
"umi": "^2.2.1",
"umi": "2.13.17",
"umi-plugin-ga": "^1.1.3",
"umi-plugin-react": "^1.2.0"
},
Expand Down

0 comments on commit 1bf379e

Please sign in to comment.