Compare against 1.17.0-dev until full release

This commit is contained in:
syeopite 2025-06-03 09:23:28 -07:00
parent 628f45de01
commit 60172a2e6a
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A
3 changed files with 3 additions and 3 deletions

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 # Strip StaticFileHandler from the binary
# #
# This allows us to compile on 1.17.0 as the compiler won't try to # This allows us to compile on 1.17.0 as the compiler won't try to

View File

@ -233,7 +233,7 @@ add_handler APIHandler.new
add_handler AuthHandler.new add_handler AuthHandler.new
add_handler DenyFrame.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 Kemal.config.serve_static = false
add_handler Invidious::HttpServer::StaticAssetsHandler.new("assets", directory_listing: false) add_handler Invidious::HttpServer::StaticAssetsHandler.new("assets", directory_listing: false)
{% else %} {% else %}

View File

@ -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 module Invidious::HttpServer
class StaticAssetsHandler < HTTP::StaticFileHandler class StaticAssetsHandler < HTTP::StaticFileHandler