Invidious is an alternative front-end to YouTube
Compare against 1.17.0-dev until full release
syeopite6fd1cb3585fe
diff --git a/src/ext/kemal_static_file_handler.cr b/src/ext/kemal_static_file_handler.crindex c6b9a27d..16cb84fb 100644--- a/src/ext/kemal_static_file_handler.cr+++ b/src/ext/kemal_static_file_handler.cr@@ -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 todiff --git a/src/invidious.cr b/src/invidious.crindex ea5b9c63..a61f91a9 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -231,7 +231,7 @@ add_handler APIHandler.newadd_handler AuthHandler.newadd_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 = falseadd_handler Invidious::HttpServer::StaticAssetsHandler.new("assets", directory_listing: false){% else %}diff --git a/src/invidious/http_server/static_assets_handler.cr b/src/invidious/http_server/static_assets_handler.crindex 7ea26dad..243d6a8d 100644--- a/src/invidious/http_server/static_assets_handler.cr+++ b/src/invidious/http_server/static_assets_handler.cr@@ -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::HttpServerclass StaticAssetsHandler < HTTP::StaticFileHandler