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.
Files changed (2) hide show
  1. package/Readme.md +6 -4
  2. 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
- [[redirects]]
398
- from = "/api/*"
399
- to = "/.netlify/edge-functions/api"
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
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bini-router",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "File-based routing, nested layouts, and Hono-powered API routes for Vite + React",
5
5
  "author": "bini.js",
6
6
  "license": "MIT",