From 6a3ada2fe5200c562b64819bc37cbfaaae99eb77 Mon Sep 17 00:00:00 2001 From: Dejan Grofelnik Pelzel Date: Thu, 7 Nov 2024 22:35:04 +0700 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03ebf31..6c1f80a 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,10 @@ BunnySDK.net.http.serve({ port: 8080, hostname: '127.0.0.1' }, async (req) => { This example sets up a local HTTP server using the Bunny Edge Scripting SDK. You can access the server at 127.0.0.1:8080 and observe the real-time request logs. This setup mimics the way Bunny's edge network handles requests, providing a consistent development experience. ### Parameter Explanation -port: The port on which the server will listen for incoming HTTP requests. In this example, 8080 is specified, so you can access the server at http://127.0.0.1:8080. -hostname: The hostname or IP address for the server. Here, '127.0.0.1' restricts the server to listen only on the local machine. To make it accessible over the network, you could set it to '0.0.0.0'. + +- **`port`**: The port on which the server will listen for incoming HTTP requests. In this example, `8080` is specified, so you can access the server at [http://127.0.0.1:8080](http://127.0.0.1:8080). + +- **`hostname`**: The hostname or IP address for the server. Here, `'127.0.0.1'` restricts the server to listen only on the local machine (l ## 🚀 Deploying to Bunny Edge After local development and testing, deploying to Bunny Edge Scripting is straightforward. Simply push your code to your Bunny Edge Scripting project’s GitHub repository, and it will be automatically deployed across Bunny’s global CDN.