在我的本地环境中,我尝试在登录到我的NextJS应用程序(localhost:3005)之后设置用户令牌,使用来自我的快速后端的响应(localhost:3020)。我可以在服务器上的响应中看到set-cookie,但是getServerSideProps中的cookie总是空的。"localhost:3005", // tried without this
我在一个nextjs项目中使用firebase进行身份验证。我在不同端口的本地主机上运行的快速后端API上使用firebase admin SDK生成会话cookie。的getServerSideProps中检索cookie。export async function getServerSideProps(context) { if (!cookies.
你好,我是nextjs的新手,我正在与django、drf和postgres一起使用它。问题是,我不能使用在profile.js文件之上导入getStaticProps的‘js’,getServerSideProps也不像这样:import Cookies from 'js-cookie'我的用例在getStaticProps/<em