In this lesson, we’ll continue scaffolding out the page responsible for display each blog post (/blog/:id
). Specifically, we’ll leverage Next.js’ getInitialProps
lifecycle method to grab the specific id
for the blog post and see how we can pull this value out of the query object defined within our custom server.