We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
search-index.json
1 parent 87ae510 commit 33fb635Copy full SHA for 33fb635
content/search/search-index.json
@@ -18,6 +18,9 @@
18
%>
19
<%=
20
#output the generated tree
21
- # TODO JSON.generate() always/on production builds?
22
- JSON.pretty_generate(@output.sort{|a, b| a[:title] <=> b[:title]})
+ if ENV['RACK_ENV'] == "production"
+ JSON.generate(@output.sort{|a, b| a[:title] <=> b[:title]})
23
+ else
24
+ JSON.pretty_generate(@output.sort{|a, b| a[:title] <=> b[:title]})
25
+ end
26
0 commit comments