This repo demonstrates an issue with built versions of Next 12 and the universal-cookie
package. The issue is that the universal-cookie
package is not able to call cookies.get
when built with Next 12.x. This issue does not occur when running the app in development mode.
- Clone this repo
- Run
yarn install
- Run
yarn build
- Run
yarn start