bini-router 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +6 -4
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -394,10 +394,9 @@ Add `netlify.toml`:
|
|
|
394
394
|
command = "vite build"
|
|
395
395
|
publish = "dist"
|
|
396
396
|
|
|
397
|
-
[[
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
status = 200
|
|
397
|
+
[[edge_functions]]
|
|
398
|
+
path = "/api/*"
|
|
399
|
+
function = "api"
|
|
401
400
|
|
|
402
401
|
[[redirects]]
|
|
403
402
|
from = "/*"
|
|
@@ -405,6 +404,9 @@ Add `netlify.toml`:
|
|
|
405
404
|
status = 200
|
|
406
405
|
```
|
|
407
406
|
|
|
407
|
+
> **Important:** Use `[[edge_functions]]` to wire up the API — **not** `[[redirects]]`.
|
|
408
|
+
> Using a redirect to `/.netlify/edge-functions/api` will result in a 404 for all API routes.
|
|
409
|
+
|
|
408
410
|
Push and deploy — no other config needed.
|
|
409
411
|
|
|
410
412
|
---
|