From fd053115adb5b27305667cec2101beb9e1f17827 Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Wed, 20 Mar 2024 12:21:45 +0100 Subject: [PATCH] ENH Add ability to ignore domains entirely --- src/Middleware/InitStateMiddleware.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Middleware/InitStateMiddleware.php b/src/Middleware/InitStateMiddleware.php index e30ac8c5..72d4a046 100644 --- a/src/Middleware/InitStateMiddleware.php +++ b/src/Middleware/InitStateMiddleware.php @@ -86,6 +86,11 @@ public function getIsFrontend(HTTPRequest $request) */ public function getIsDomainMode(HTTPRequest $request) { + // Check environment for a ignored override + if (Environment::getEnv('SS_FLUENT_IGNORE_DOMAIN')) { + return false; + } + // Don't act in domain mode if none exist if (!Domain::getCached()->exists()) { return false;