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.