Update env dependency.
Move the substitution logic to middleware.
0.8.49