title: How to use cookie inside `getServerSideProps` method in Next.js?
body: <p>I have to send current language on endpoint. But getting language from Cookie returns undefined inside <code>getServerSideProps</code>.</p>
  <pre><code>export async function getServerSideProps(context) {
      const lang = await Cookie.get('next-i18next')
      const res = await fetch(`endpoint/${lang}`)
      const data = await res.json()
  
      return {
          props: { data },
      }
  }
  
  export default Index;
  </code></pre>
  <p>What is the proper way to get cookie inside <code>getServerSideProps</code>?</p>