Build all code in full-stack app frappe to fe-dist, be-dist

can i build all code frappe to run in production
example:
FE in one folder call “dist”
BE in other folder call “dist-be”

Is that possible? tks