Unverified Commit daedc1c4 authored by Hong Minhee (洪 民憙)'s avatar Hong Minhee (洪 民憙) Committed by GitHub
Browse files

Merge pull request #370 from 2chanhaeng/hotfix/next

parents a3dbac51 513245df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ Works with virtually any JavaScript/TypeScript web framework:
 -  [Hono](./manual/integration.md#hono)
 -  [Fresh](./manual/integration.md#fresh)
 -  [SvelteKit](./manual/integration.md#sveltekit)
 -  Next.js
 -  [Next.js](./manual/integration.md#next.js)
 -  [h3](./manual/integration.md#h3)/Nitro

… and many more!
+5 −3
Original line number Diff line number Diff line
@@ -30,17 +30,19 @@
  ],
  "type": "module",
  "main": "./dist/index.js",
  "module": "./dist/index.mjs",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "require": {
        "types": "./dist/index.d.ts",
        "import": "./dist/index.js",
        "default": "./dist/index.js"
      },
      "import": {
        "types": "./dist/index.d.mts",
        "default": "./dist/index.mjs"
        "types": "./dist/index.d.ts",
        "import": "./dist/index.js",
        "default": "./dist/index.js"
      }
    },
    "./package.json": "./package.json"
+2 −2
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@
 * @since 1.9.0
 */
import type { Federation, FederationFetchOptions } from "@fedify/fedify";
import { notFound } from "next/navigation";
import { NextResponse } from "next/server";

interface ContextDataFactory<TContextData> {
@@ -125,12 +124,13 @@ export function integrateFederation<TContextData>(
      request,
      {
        contextData: await contextDataFactory(request),
        onNotFound: notFound,
        onNotFound,
        onNotAcceptable,
        ...errorHandlers,
      },
    );
}
const onNotFound = () => new Response("Not found", { status: 404 });
const onNotAcceptable = () =>
  new Response("Not acceptable", {
    status: 406,
+173 −166

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ catalog:
  express: ^4.0.0
  h3: ^1.15.0
  ioredis: ^5.6.1
  next: ^15.4.2-canary
  next: ^15.4.6
  postgres: ^3.4.7
  tsdown: ^0.12.9
  typescript: ^5.8.3
  typescript: ^5.9.2