diff --git a/index.php b/index.php index 8dd2089..9f863c8 100644 --- a/index.php +++ b/index.php @@ -3,8 +3,10 @@ require __DIR__ . "/vendor/autoload.php"; use Steampixel\Route; // LOAD DOTENV -$dotenv = Dotenv\Dotenv::createImmutable(__DIR__); -$dotenv->load(); +if (file_exists(__DIR__ . '/.env')) { + $dotenv = Dotenv\Dotenv::createImmutable(__DIR__); + $dotenv->load(); +} // -- HELPERS -- // function getSubdir(): string {