Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2023-01-25 13:55:59 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2023-01-25 13:55:59 +0300
commitd98ca853a5b291133ca76323616ce3dd9c34693c (patch)
tree572f74ee7a875995c55e6fc1b8b7dc87b135784c /commands
parent911830a6ab2fd270880afef8f4735f31b6974bc8 (diff)
Rename ALGOLIA_SEARCH variable to be more generic
Diffstat (limited to 'commands')
-rw-r--r--commands/frontend.rb2
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}"))