diff --git a/.gitignore b/.gitignore index b8320d1d1..b4eb03b1f 100644 --- a/.gitignore +++ b/.gitignore @@ -247,4 +247,8 @@ src/dashboard/lambda/mock/index.js # Cello local storage /**/opt/* -/**/cello/* \ No newline at end of file +/**/cello/* + +# Local Netlify folder +.netlify +src/dashboard/deno.lock diff --git a/src/dashboard/package.json b/src/dashboard/package.json index 1ea4e4de0..ed96bd4ca 100755 --- a/src/dashboard/package.json +++ b/src/dashboard/package.json @@ -13,8 +13,8 @@ "docker:dev": "docker compose -f ./docker/docker-compose.dev.yml up", "docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro", "docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro", - "functions:build": "yarn run generateMock && netlify build ./lambda", - "functions:run": "npm run generateMock && cross-env NODE_ENV=dev netlify-lambda serve ./lambda", + "functions:build": "yarn run generateMock && netlify dev", + "netlify:dev": "netlify dev", "generateMock": "node ./scripts/generateMock", "lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier", "lint-staged": "lint-staged", @@ -57,6 +57,7 @@ "antd": "^4.2.5", "bizcharts": "3.5.2-beta.1", "bizcharts-plugin-slider": "^2.1.1-beta.1", + "body-parser": "^1.19.0", "cello-paginator": "^1.0.1", "classnames": "^2.2.6", "enquire-js": "^0.2.1", @@ -66,7 +67,7 @@ "lodash-decorators": "^6.0.1", "memoize-one": "^5.0.0", "moment": "^2.24.0", - "merge-umi-mock-data": "^2.0.0", + "merge-umi-mock-data": "^1.0.0", "numeral": "^2.0.6", "nzh": "^1.0.4", "omit.js": "^1.0.0",