@fedify/init 2.4.0-dev.2169 → 2.4.0-dev.2193
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/dist/deno.js
CHANGED
|
@@ -13,8 +13,12 @@ export default fedifyWith(federation)(
|
|
|
13
13
|
*/
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
-
// This config
|
|
17
|
-
// "Accept"
|
|
16
|
+
// This config makes the middleware run only for requests that may be
|
|
17
|
+
// federation requests: requests whose "Accept" or "Content-Type" header
|
|
18
|
+
// has a federation media type, NodeInfo requests, and FEP-ef61 gateway
|
|
19
|
+
// requests such as hashlink media, which clients fetch with, e.g.,
|
|
20
|
+
// "Accept: image/*". fedifyWith() then decides which of them Fedify
|
|
21
|
+
// handles.
|
|
18
22
|
// More details: https://nextjs.org/docs/app/api-reference/file-conventions/middleware#config-object-optional
|
|
19
23
|
export const config = {
|
|
20
24
|
runtime: "nodejs",
|
|
@@ -41,5 +45,6 @@ export const config = {
|
|
|
41
45
|
},
|
|
42
46
|
{ source: "/.well-known/nodeinfo" },
|
|
43
47
|
{ source: "/.well-known/x-nodeinfo2" },
|
|
48
|
+
{ source: "/.well-known/apgateway/:path*" },
|
|
44
49
|
],
|
|
45
50
|
};
|