10 lines
244 B
TypeScript
10 lines
244 B
TypeScript
|
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);
|