+ it dev nextjs middleware How to pass a value from Next.js middleware to API routes and getServerSideProps Compute a value in middleware and pass it to your API route or getServerSideProps. Works in both Node and Edge runtimes. wono | tweet Add comment Do you want to delete? YesNo