Add environment-specific hooks to express apps