```ruby
# frozen_string_literal: true

Dotenv.require_keys("SUGAR_SECRET_KEY_BASE")

Sugar::Application.config.secret_key_base = ENV["SUGAR_SECRET_KEY_BASE"]
```

Fix SUGAR_SECRET_KEY_BASE check, Dotenv is not available in production
user
```ruby
# frozen_string_literal: true

unless ENV["SUGAR_SECRET_KEY_BASE"]
  raise "SUGAR_SECRET_KEY_BASE environment variable hasn't been set."
end

Sugar::Application.config.secret_key_base = ENV["SUGAR_SECRET_KEY_BASE"]
```
assistant