The following error happens only in production:
TypeError: Cannot read properties of null (reading 'useContext')
For context, the app is built as standalone as it is deployed with a Docker container (not on Vercel).
The error makes no sense as it is saying the React hook is being null. The error location points to a
swr library and a line of code that merely uses the hook.
The solution: downgrade from