diff --git a/src/static_handler.cr b/src/static_handler.cr index 9162b00..c7f9cac 100644 --- a/src/static_handler.cr +++ b/src/static_handler.cr @@ -5,9 +5,11 @@ require "./util" class FS extend BakedFileSystem - {% if read_file? "./dist" %} + {% if read_file? "#{__DIR__}/../dist/favicon.ico" %} + {% puts "baking ../dist" %} bake_folder "../dist" {% else %} + {% puts "baking ../public" %} bake_folder "../public" {% end %} end