Change how -env is injected locally (previous code doesn't work, -env still leaks to LogAccess middleware)