ā views/pages/user/[id].js
1export default async ({ params }) => {2 return {3 title: `User: ${params.id}`,4 html: `<p>Hello, <strong>${params.id}</strong></p>`5 };6};8export const middlewares = [9 (req, res, next) => {10 console.log('š User route hit');11 next();12 }13];