next.js/examples/with-axiom/middleware.ts
middleware.ts10 lines244 B
import { NextResponse } from "next/server";
import { log, withAxiom } from "next-axiom";

async function middleware() {
  log.info("Hello from middleware", { bar: "baz" });
  return NextResponse.next();
}

export default withAxiom(middleware);
Quest for Codev2.0.0
/
SIGN IN