Skip to content

Commit 8c7aab3

Browse files
author
sw-yx
committed
resolve merge
2 parents 7977ddc + e4d0054 commit 8c7aab3

File tree

3 files changed

+6252
-8726
lines changed

3 files changed

+6252
-8726
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Dist: Each JavaScript file in there will be built for Lambda function deployment
1212

1313
As an example, we've included a small `src/lambda/hello.js` function, which will be deployed to `/.netlify/functions/hello`. We've also included an async lambda example using async/await syntax in `async-dadjoke.js`.
1414

15+
Your functions will be available locally at
16+
1517
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/create-react-app-lambda)
1618

1719
## Video
@@ -38,7 +40,11 @@ ntl dev ## nice shortcut for `neltify dev`
3840
This fires up [Netlify Dev](https://github.com/netlify/netlify-dev-plugin/), which:
3941

4042
- Detects that you are running a `create-react-app` project and runs the npm script that contains `react-scripts start`, which in this project is the `start` script
41-
- Detects that you use `netlify-lambda` as a [function builder](https://github.com/netlify/netlify-dev-plugin/#function-builders-function-builder-detection-and-relationship-with-netlify-lambda), and runs the npm script that contains `netlify-lambda build`, which in this project is the `build:lambda` script
43+
- Detects that you use `netlify-lambda` as a [function builder](https://github.com/netlify/netlify-dev-plugin/#function-builders-function-builder-detection-and-relationship-with-netlify-lambda), and runs the npm script that contains `netlify-lambda build`, which in this project is the `build:lambda` script.
44+
45+
You can view the project locally via Netlify Dev, via `localhost:8888`.
46+
47+
Each function will be available at the same port as well: `http://localhost:8888/.netlify/functions/hello` and `http://localhost:8888/.netlify/functions/async-dadjoke`.
4248

4349
## Deployment
4450

0 commit comments

Comments
 (0)