📜  getServerSideProps cookie - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:57.857000             🧑  作者: Mango

代码示例1
import * as cookie from 'cookie'

export async function getServerSideProps(context) {
  const parsedCookies = cookie.parse(context.req.headers.cookie);
  return { props: {} }
}