Skip to content

Commit

Permalink
Merge pull request #829 from lekoala/patch-1
Browse files Browse the repository at this point in the history
ENH Add ability to ignore domains entirely
  • Loading branch information
tractorcow authored Mar 20, 2024
2 parents fb034a9 + fd05311 commit 02d6dfa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Middleware/InitStateMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 02d6dfa

Please sign in to comment.