diff --git a/src/Handler.php b/src/Handler.php
index f8c18cac3c31b637b72e004cf114d2ef465354d3..e81f2fb80ced9b7db33ba21a2adb9e56125c84b8 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -637,10 +637,12 @@ class Handler extends BaseHandler {
       'hosts' => [
         'source' => 'in/',
         'dest' => $projectRoot . '/in',
+        'condition' => $this->config->readValue(['invoiceninja', 'enable']),
       ],
       'in-vhost.conf' => [
         'source' => 'in/',
         'dest' => $projectRoot . '/in',
+        'condition' => $this->config->readValue(['invoiceninja', 'enable']),
       ],
     ];
     $files['cypress.config.js'] = [