Move env export to compile