Error when connecting a custom server file
Expected behaviour
Connecting the custom configureApp function from the file whose path is specified in config/default.js, pubsweet-server.app
Current behaviour
Instead of a function object, the usual path to the new file is returned, so the server does not find the configureApp function
Steps to reproduce
- Connect the custom file https://drive.google.com/file/d/16-gMXP5acLJGRqZMK_Pw3WnuJjNfeixL/view?usp=sharing in config/default.js
Environment
ubuntu 20.0, node 12.22
Possible solution
solved the problem @coko/server/srс/startServer.js by adding "require" in the 23 row