DEV Community

loading...

Discussion on: I need some Lambda Function/ Netlify Function stuff.

Collapse
fmctaggart profile image
Fraser McTaggart • Edited

You can test on a local machine using the netlify cli. Specify your dev command in your netlify.toml file. Then type
Netlify dev

This spins up your dev command (eg. Npm run dev), and your function lambdas. You can access them both via localhost:8888
Your functions will be accessed via
Localhost:8888/.netlify/functions

You can use Postman to test.

Netlify Dev

Collapse
cwraytech profile image
Christopher Wray Author

Thank you! So helpful.

Collapse
cwraytech profile image
Christopher Wray Author

Fraser!!! LOVE the Netlify CLI. INCREDIBLE. thank you so much.