Compare against 1.17.0-dev until full release

This commit is contained in:
syeopite authored and Émilien (perso) committed 2025-12-19 12:35:00 +01:00
1 parent ddfbed68f7
commit 6fd1cb3585
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
{% if compare_versions(Crystal::VERSION, "1.17.0") >= 0 %}
{% if compare_versions(Crystal::VERSION, "1.17.0-dev") >= 0 %}
# Strip StaticFileHandler from the binary
#
# This allows us to compile on 1.17.0 as the compiler won't try to
+1 -1
View File
@@ -231,7 +231,7 @@ add_handler APIHandler.new
add_handler AuthHandler.new
add_handler DenyFrame.new
{% if compare_versions(Crystal::VERSION, "1.17.0") >= 0 %}
{% if compare_versions(Crystal::VERSION, "1.17.0-dev") >= 0 %}
Kemal.config.serve_static = false
add_handler Invidious::HttpServer::StaticAssetsHandler.new("assets", directory_listing: false)
{% else %}
@@ -1,4 +1,4 @@
{% skip_file if compare_versions(Crystal::VERSION, "1.17.0") < 0 %}
{% skip_file if compare_versions(Crystal::VERSION, "1.17.0-dev") < 0 %}
module Invidious::HttpServer
class StaticAssetsHandler < HTTP::StaticFileHandler