Currently the generated functions are all or nothing, so if a site uses Gatsby Functions it needs to generate the DSG and SSR functions too, even if they're not used (and vice versa). This is a problem when the DSG or SSR bundles are too large, as it means the whole build fails.
We should do two parts to this: