It works fine in development, only when actually building and running Sanity you get the following error: 