Skip to content

Commit

Permalink
ENH Add ability to ignore domains entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala authored Mar 20, 2024
1 parent fb034a9 commit fd05311
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 fd05311

Please sign in to comment.