From d2b0048a7fdfd170c46798bf8a0d4826bd30a20e Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Mon, 19 May 2025 16:04:04 -0700 Subject: [PATCH] fix: add _APP_DOMAIN_SITES variables.php so the env is initialized Without this, API calls to Appwrite can result in rule_not_found errors. --- app/config/variables.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/config/variables.php b/app/config/variables.php index da41666845..2f9a5ab41a 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -106,6 +106,15 @@ return [ 'question' => '', 'filter' => '' ], + [ + 'name' => '_APP_DOMAIN_SITES', + 'description' => 'A domain to use for site preview URLs.', + 'introduction' => '', + 'default' => 'sites.localhost', + 'required' => false, + 'question' => '', + 'filter' => '' + ], [ 'name' => '_APP_DOMAIN_TARGET', 'description' => 'Deprecated since 1.7.0. A DNS A record hostname to serve as a CNAME target for your Appwrite custom domains. You can use the same value as used for the Appwrite \'_APP_DOMAIN\' variable. The default value is \'localhost\'.',