Skip to content

Commit

Permalink
make netlify-cli run but got bug on how to use serverless function
Browse files Browse the repository at this point in the history
Signed-off-by: YoungHypo <haiboyang@smail.nju.edu.cn>
  • Loading branch information
YoungHypo committed Aug 23, 2024
1 parent f06c737 commit fef5f1c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,8 @@ src/dashboard/lambda/mock/index.js

# Cello local storage
/**/opt/*
/**/cello/*
/**/cello/*

# Local Netlify folder
.netlify
src/dashboard/deno.lock
7 changes: 4 additions & 3 deletions src/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit fef5f1c

Please sign in to comment.