title: __dirname is not defined within API routes
body: <p>I have a Next.js API route which needs to access a local file, but __dirname is not defined when I use it within an API route.</p>
  
  <p>Is it possible to get the current directory from within a Next route?</p>