Env config and precompile