ETC.
after
import { after } from 'next/server'
export default function Layout() {
after(() => { // 실행될 콜백을 인자로 받음
log();
})
}
after(async () => { const userAgent = (await headers().get('user-agent')) || 'unknown' const sessionCookie = (await cookies().get('session-id'))?.value || 'anonymous' logUserAction({ sessionCookie, userAgent }) })
instrumentation.js
Form Component
Optimizing bundling of extenral packages
Last updated