diff options
author | Sarah German <sgerman@gitlab.com> | 2023-01-25 13:55:59 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2023-01-25 13:55:59 +0300 |
commit | d98ca853a5b291133ca76323616ce3dd9c34693c (patch) | |
tree | 572f74ee7a875995c55e6fc1b8b7dc87b135784c /commands | |
parent | 911830a6ab2fd270880afef8f4735f31b6974bc8 (diff) |
Rename ALGOLIA_SEARCH variable to be more generic
Diffstat (limited to 'commands')
-rw-r--r-- | commands/frontend.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/frontend.rb b/commands/frontend.rb index 48ece62f..b144b5ca 100644 --- a/commands/frontend.rb +++ b/commands/frontend.rb @@ -37,7 +37,7 @@ run do |opts, args, cmd| puts "- Copied #{gl_ui_src}/#{filename}" if filename.include?("map") && File.write("#{gl_ui_dest}/#{filename}", File.read("#{root}/#{gl_ui_src}/#{filename}")) end - if ENV['ALGOLIA_SEARCH'] == "false" + if ENV['SEARCH_BACKEND'] == "lunr" lunr_src = "node_modules/lunr/lunr.min.js" puts 'Copying Lunr.js...' puts "- Copied #{lunr_src}" if File.write('public/assets/javascripts/lunr.min.js', File.read("#{root}/#{lunr_src}")) |