This commit is contained in:
2026-03-02 02:46:16 +01:00
parent a5cfb1ef35
commit 3faee1f6c4
6 changed files with 24 additions and 9 deletions

View File

@@ -11,6 +11,18 @@ class Config
) {
}
public function primaryUrl(): string
{
if (defined('APP_URL_PRIMARY') && APP_URL_PRIMARY !== '') {
return APP_URL_PRIMARY;
}
$domain = $this->cookieDomain();
if ($domain) {
return 'https://' . $domain;
}
return '';
}
public function cookiePrefix(): string
{
if (defined('APP_PREFIX') && APP_PREFIX !== '') {