Trying to plugin an external script to a NextJS application using custom document, however running into \'not defined\' error on the configure script.
// pages/_d