Skip to content

Commit

Permalink
Allow test domains
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Feb 20, 2025
1 parent e09a41c commit 532bb0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pub/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

function getRealhost(): string
{
if (str_ends_with($_SERVER['HTTP_HOST'], '.test')) {
return $_SERVER['HTTP_HOST'];
}

return 'nl.mage-os.org';
}

Expand Down

0 comments on commit 532bb0f

Please sign in to comment.