It sounds like the development version is being deployed, which includes just-in-time compilation of assets, etc. You’ll need to build a production version
$ npm run build # which runs `next build`
then run/deploy the application using
$ npm run start # which runs `NODE_ENV=production node server.js`