diff --git a/docs/tutorials/01-first-edge-function.md b/docs/tutorials/01-first-edge-function.md index afd8978..8147f6e 100644 --- a/docs/tutorials/01-first-edge-function.md +++ b/docs/tutorials/01-first-edge-function.md @@ -105,26 +105,16 @@ This will start your function at `http://localhost:54321/functions/v1/hello-worl You can test your function using `curl` or any HTTP client: -### Basic Test (No Parameters) - -```bash -curl http://localhost:54321/functions/v1/hello-world +### Export `anon key` ``` - -Expected response: -```json -{ - "message": "Hello World!", - "timestamp": "2025-03-10T23:30:00.000Z", - "version": "1.0.0" -} +export ANON_KEY= ``` - ### Test with a Custom Name ```bash curl -X POST \ -H "Content-Type: application/json" \ + -H "Authorization: Bearer "$ANON_KEY \ -d '{"name":"Alice"}' \ http://localhost:54321/functions/v1/hello-world ``` @@ -202,4 +192,4 @@ To learn more about deploying your function to production, check out the [Deploy --- -[Back to Tutorials](./README.md) \ No newline at end of file +[Back to Tutorials](./README.md)