@fedify/next 2.2.0-pr.710.22 → 2.2.0-pr.710.24
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 +8 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,16 +12,19 @@ This package provides a simple way to integrate [Fedify] with [Next.js].
|
|
|
12
12
|
> [Fedify CLI] rather than installing this package directly.
|
|
13
13
|
|
|
14
14
|
> [!IMPORTANT]
|
|
15
|
-
> This package
|
|
16
|
-
> Therefore, you must use
|
|
17
|
-
>
|
|
15
|
+
> This package relies on Next.js request interception on the Node.js runtime.
|
|
16
|
+
> Therefore, you must use Next.js 15.4.6 or later.
|
|
17
|
+
> On Next.js 16, `proxy.ts` is preferred and `middleware.ts` is deprecated but
|
|
18
|
+
> still supported. If you switch to `proxy.ts`, omit `runtime: "nodejs"` from
|
|
19
|
+
> the exported `config`, because Proxy always runs on the Node.js runtime.
|
|
20
|
+
> For more details, refer to the [official documentation of `proxy`].
|
|
18
21
|
|
|
19
22
|
[@fedify@hollo.social badge]: https://fedi-badge.deno.dev/@fedify@hollo.social/followers.svg
|
|
20
23
|
[@fedify@hollo.social]: https://hollo.social/@fedify
|
|
21
24
|
[Fedify]: https://fedify.dev/
|
|
22
25
|
[Next.js]: https://nextjs.org/
|
|
23
26
|
[Fedify CLI]: https://www.npmjs.com/package/@fedify/cli
|
|
24
|
-
[official documentation of `
|
|
27
|
+
[official documentation of `proxy`]: https://nextjs.org/docs/app/api-reference/file-conventions/proxy
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
Usage
|
|
@@ -34,7 +37,7 @@ import { federation } from "./federation";
|
|
|
34
37
|
|
|
35
38
|
export default fedifyWith(federation)();
|
|
36
39
|
|
|
37
|
-
// This config must be defined
|
|
40
|
+
// This config must be defined in the same file.
|
|
38
41
|
export const config = {
|
|
39
42
|
runtime: "nodejs",
|
|
40
43
|
matcher: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/next",
|
|
3
|
-
"version": "2.2.0-pr.710.
|
|
3
|
+
"version": "2.2.0-pr.710.24+7ce4f97e",
|
|
4
4
|
"description": "Integrate Fedify with Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"package.json"
|
|
51
51
|
],
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"next": "
|
|
54
|
-
"@fedify/fedify": "^2.2.0-pr.710.
|
|
53
|
+
"next": ">=15.4.6 <17",
|
|
54
|
+
"@fedify/fedify": "^2.2.0-pr.710.24+7ce4f97e"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"tsdown": "^0.21.6",
|