@klnap/payload-redirect 0.4.3 → 0.4.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 2c92fa0: Document that the README Next.js proxy example is verified against PostgreSQL by the integration suite. No runtime change.
8
+
3
9
  ## 0.4.3
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -261,7 +261,7 @@ The plugin stores these rules only. It does not collect attribution data or conn
261
261
 
262
262
  ## Application integration
263
263
 
264
- The plugin stores rules and never sends a response. The example below is illustrative: the plugin does not run it in a Next.js app, and how your application serves redirects is up to you. Your application looks each request up and redirects. The example below is for Next.js 16 (`src/proxy.ts`); the same logic works in any framework that can call the Payload Local API.
264
+ The plugin stores rules and never sends a response. The example below is verified by `tests/integration/nextjs-proxy-example.test.ts`: the test runs this proxy function against a PostgreSQL fixture with real Next.js request and response objects. It does not start a Next.js server or check your `matcher`. How your application serves redirects is up to you. Your application looks each request up and redirects. The example below is for Next.js 16 (`src/proxy.ts`); the same logic works in any framework that can call the Payload Local API.
265
265
 
266
266
  ```ts
267
267
  // src/proxy.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klnap/payload-redirect",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Redirect management for Payload CMS.",
5
5
  "homepage": "https://github.com/klnap/payload-redirect#readme",
6
6
  "bugs": {