https://nitro.build/docs/lifecycle#request-hook
The example shown here uses:
`console.log(`Incoming request on ${event.path}`);
in:
import { definePlugin } from "nitro";
export default definePlugin((nitroApp) => {
nitroApp.hooks.hook("request", (event) => {
console.log(`Incoming request on ${event.path}`);
});
});
The event here is an HTTPEvent not H3Event, so there is no path property in this event.
https://nitro.build/docs/lifecycle#request-hook
The example shown here uses:
in:
The
eventhere is anHTTPEventnotH3Event, so there is nopathproperty in this event.