title: How to set env.development and env.production in Preact app
body: <p>On react app, you can create .env.production and .env.development and enter different key and values like this.</p>
  <p><code>REACT_APP_API_URL= &quot;xyz&quot;</code></p>
  <p>to pick environment variables automatically based on commands used --&gt; <code>npm start</code> or <code>npm run build</code>.</p>
  <p>What is the equivalent process in preact?</p>