From f9fcb78580e49954f8558ba19e024f95e875eb0d Mon Sep 17 00:00:00 2001 From: Ayush Newatia Date: Wed, 27 Nov 2024 13:01:04 +1300 Subject: [PATCH] Require bridgetown when booting from Rack --- bridgetown-core/lib/bridgetown-core/rack/boot.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bridgetown-core/lib/bridgetown-core/rack/boot.rb b/bridgetown-core/lib/bridgetown-core/rack/boot.rb index 6c9e7b1a3..e83b58655 100644 --- a/bridgetown-core/lib/bridgetown-core/rack/boot.rb +++ b/bridgetown-core/lib/bridgetown-core/rack/boot.rb @@ -3,14 +3,15 @@ require "zeitwerk" require "roda" require "json" - -Bridgetown::Current.preloaded_configuration ||= Bridgetown.configuration +require "bridgetown" require_relative "logger" require_relative "routes" module Bridgetown module Rack + Bridgetown::Current.preloaded_configuration ||= Bridgetown.configuration + class << self # @return [Bridgetown::Utils::LoadersManager] attr_accessor :loaders_manager