title: Disable keycloak on vuejs on test environment (development) only
body: <p>I have on VueJS project, this configuration :</p>
  <pre><code>let initOptions = {
      url: 'http://localhost:81/auth', realm: 'cmt', clientId: 'cmt_api', onLoad: 'login-required'
  }
  
  let keycloak = Keycloak(initOptions)
  
  const routes = [
          { path: '/', name: 'MyFirstRoute', component: MyFirstRoute },
          { path: '/SecondWindow', name: 'SecondWindow', component: SecondWindow },
          { path: '/ThirdWindow', name: 'ThirdWindow', component: ThirdWindow },
          { path: '*', redirect: '/', },
  ]
  
  const router = new VueRouter({
      mode: 'history',
      routes
  })
  
  const app = new Vue({vuetify,router,i18n,render: h =&gt; h(App)}).$mount('#app')
  
  keycloak.init({ onLoad: initOptions.onLoad }).then(
  (auth) =&gt; {
      if (!auth) {
          window.location.reload();
      } else {
          // Vue.$log.info(&quot;Authenticated&quot;);
         app
      }
  }
  )
  </code></pre>
  <p>I want to use this configuration for Production, Acceptance, Docker testing but for the development testing only, I would like don't use keycloak.
  Unfortunately, I don't find some responses. I create (for dev ) in environment variable the boolean VUE_APP_DEV=true.</p>
  <p>Can somebody help me to complete the code to allow to connect to the application (without keycloak) without change the code (comment the keycloak reference in the main.js)</p>