Get URL Query Parameters From A Request In Nextjs

TODO: Fix the formatting of this post that got busted during the move to nextjs