Unverified Commit cda17d57 authored by robin*'s avatar robin* Committed by Hong Minhee
Browse files

delete console.log

parent 66f07042
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ Released on November 23, 2024.
[#177]: https://github.com/dahlia/fedify/issues/177
[#181]: https://github.com/dahlia/fedify/pull/181

 -  Support SvelteKit integrations. [[#183]]

Version 1.2.7
-------------
+0 −3
Original line number Diff line number Diff line
@@ -47,7 +47,6 @@ export const fedifyHook = <TContextData>(
  ) => TContextData | Promise<TContextData>,
) => {
  return async ({ event, resolve }: HookParams) => {
    console.log("fetch", event.request.url);
    return await federation.fetch(event.request, {
      contextData: await createContextData(event),
      ...integrateFetchOptions({ event, resolve }),
@@ -63,7 +62,6 @@ const integrateFetchOptions = (
  // provided by the SvelteKit framework to continue the request handling
  // by the SvelteKit:
  async onNotFound(): Promise<Response> {
    console.log("onNotFound", event.request.url);
    return await resolve(event);
  },

@@ -75,7 +73,6 @@ const integrateFetchOptions = (
  // This kind of trick enables the Fedify and SvelteKit to share the same routes
  // and they do content negotiation depending on `Accept` header:
  async onNotAcceptable(): Promise<Response> {
    console.log("onNotAcceptable", event.request.url);
    const res = await resolve(event);
    if (res.status !== 404) return res;
    return new Response("Not acceptable", {