@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 +6 -0
- package/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
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
|