在我的本地环境中,我尝试在登录到我的NextJS应用程序(localhost:3005)之后设置用户令牌,使用来自我的快速后端的响应(localhost:3020)。我可以在服务器上的响应中看到set-cookie,但是getServerSideProps中的cookie总是空的。localhost:3005", // tried without this also
}).redirect("http://localhost:3005/
你好,我是nextjs的新手,我正在与django、drf和postgres一起使用它。问题是,我不能使用在profile.js文件之上导入getStaticProps的‘js’,getServerSideProps也不像这样:import Cookies from 'js-cookie'我的用例在getStaticProps/getServerSideProps中,当