Issue:
Project is split between src/ and pages/ (see: https://github.com/pankod/refine/tree/master/examples/refine-next) which works well when doing local development with yarn dev doing a production build of the app via yarn build leads to an incomplete build with next ignoring all pages under src/pages (see: Caveats https://nextjs.org/docs/advanced-features/src-directory).
Workaround:
Currently including the src directory in the deployment bundle does the trick but leads to an unoptimized deployment
Fix:
Superplate should create a refine-nextjs app that works with yarn dev and with yarn build