From 9a1cb478cb325a6fd62dbb574b5e4ba6928cb1a6 Mon Sep 17 00:00:00 2001 From: Bob Date: Sun, 7 Jun 2020 13:35:02 -0600 Subject: [PATCH 1/2] Update Functions Docs to Include Functions Domain I was unaware the functions were actually being served through the browser, I thought you had to interact with them through the command line. While trying to find a way to interact with them through the browser I read the netlify-lambda docs and realized that netlify dev does serve the files in the browser, it's just not mentioned anywhere. --- docs/netlify-dev.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/netlify-dev.md b/docs/netlify-dev.md index a2a4af61c74..c4092d6bf01 100644 --- a/docs/netlify-dev.md +++ b/docs/netlify-dev.md @@ -200,7 +200,7 @@ Netlify Dev will look in project root directory for `.env` file and will provide ## Netlify Functions -Netlify can also create serverless functions for you locally as part of Netlify Functions. The serverless functions can then be run by Netlify Dev in the same way that would be when deployed to the cloud. +Netlify can also create serverless functions for you locally as part of Netlify Functions. The serverless functions can then be run by Netlify Dev in the same way that would be when deployed to the cloud. Once you congifure your functions directory in your netlify config file, all functions will be available at `localhost:8888/.netlify/functions/function-name`. Besides interacting with your functions through the broswer, you can also use the following commands: ``` ## list of major functionality From 12e36c414fc4f72012fc95d7e700b0017da27b4c Mon Sep 17 00:00:00 2001 From: Raees Iqbal Date: Sun, 7 Jun 2020 12:43:26 -0700 Subject: [PATCH 2/2] Update netlify-dev.md --- docs/netlify-dev.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/netlify-dev.md b/docs/netlify-dev.md index c4092d6bf01..db025064e0a 100644 --- a/docs/netlify-dev.md +++ b/docs/netlify-dev.md @@ -200,7 +200,7 @@ Netlify Dev will look in project root directory for `.env` file and will provide ## Netlify Functions -Netlify can also create serverless functions for you locally as part of Netlify Functions. The serverless functions can then be run by Netlify Dev in the same way that would be when deployed to the cloud. Once you congifure your functions directory in your netlify config file, all functions will be available at `localhost:8888/.netlify/functions/function-name`. Besides interacting with your functions through the broswer, you can also use the following commands: +Netlify can also create serverless functions for you locally as part of Netlify Functions. The serverless functions can then be run by Netlify Dev in the same way that would be when deployed to the cloud. Once you've configured the [functions directory in your `netlify.toml`](https://docs.netlify.com/configure-builds/file-based-configuration/#sample-file), the functions wil be accissible through `netlify dev` server. e.g. at `http://localhost:8888/.netlify/functions/function-name`. Besides interacting with your functions through the browser, you can also use the following commands: ``` ## list of major functionality