-
yarn installin root, /api & /api-routes folders -
Build api endpoint
Using command
ROUTE=<path> METHOD<method> yarn buildin root directory.// Example $ ROUTE=/test METHOD=get yarn build -
Run the endpoint
Using command
yarn dev --build <body>in root directory.// Example $ yarn dev --body '{ "test": 100 }'
metuuu/vercel-ncc-test-api
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|