Fix custom-domains feature flag
This commit is contained in:
parent
e3eacf1e23
commit
6736e15074
|
|
@ -11,7 +11,7 @@ class FeatureFlagsController extends Controller
|
|||
$featureFlags = \Cache::remember('feature_flags', 3600, function () {
|
||||
return [
|
||||
'self_hosted' => config('app.self_hosted', true),
|
||||
'custom_domains' => config('custom_domains.enabled', false),
|
||||
'custom_domains' => config('custom-domains.enabled', false),
|
||||
'ai_features' => !empty(config('services.openai.api_key')),
|
||||
|
||||
'billing' => [
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Config;
|
|||
it('returns feature flags', function () {
|
||||
// Arrange
|
||||
Config::set('app.self_hosted', false);
|
||||
Config::set('custom_domains.enabled', true);
|
||||
Config::set('custom-domains.enabled', true);
|
||||
Config::set('cashier.key', 'stripe_key');
|
||||
Config::set('cashier.secret', 'stripe_secret');
|
||||
Config::set('services.appsumo.api_key', 'appsumo_key');
|
||||
|
|
|
|||
Loading…
Reference in New Issue