Cookies are stored in development but not store in production

Cookies does not persist when deployed, it works fine in development. When the user logged in, I will send a cookie into the browser, with an option of http only, same site is none, even tried strict, secure to true. It work’s fine at the very first, I get the cookie and the response fine, but after I refresh the site the cookies are long gone. Can’t find a solution online, almost every stack overflow that encountered the same problem doesn’t have a solution. I am using nextjs 14, in the client, and express node-js in the backend. I am not using a session in the backend. Can somebody help me with it? This is my first time deploying a mern site, please take easy on me. Thanks a lot in advance!

send the public repo of your site