This adds a warning when `next export` and custom routes are defined outside of a platform that supports them since they won't be applied anymore.