From 0b5b8fb25d8fc45d3cbc0334853daf45a1075d87 Mon Sep 17 00:00:00 2001 From: Alex Piechowski Date: Sat, 5 Mar 2022 16:04:33 -0600 Subject: [PATCH] Comment out unconfigured RequestIdHandler (#739) A new lucky app results in ameba errors due to this block's contents being commented out. By commenting out the whole block, we still provide the user useful configuration information without leaving an empty block --- src/web_app_skeleton/config/server.cr.ecr | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/web_app_skeleton/config/server.cr.ecr b/src/web_app_skeleton/config/server.cr.ecr index 517aeea7..517f0c14 100644 --- a/src/web_app_skeleton/config/server.cr.ecr +++ b/src/web_app_skeleton/config/server.cr.ecr @@ -47,14 +47,13 @@ Lucky::ForceSSLHandler.configure do |settings| end # Set a unique ID for each HTTP request. -Lucky::RequestIdHandler.configure do |settings| - # To enable the request ID, uncomment the lines below. - # You can set your own custom String, or use a random UUID. - # - # settings.set_request_id = ->(context : HTTP::Server::Context) { - # UUID.random.to_s - # } -end +# To enable the request ID, uncomment the lines below. +# You can set your own custom String, or use a random UUID. +# Lucky::RequestIdHandler.configure do |settings| +# settings.set_request_id = ->(context : HTTP::Server::Context) { +# UUID.random.to_s +# } +# end private def secret_key_from_env ENV["SECRET_KEY_BASE"]? || raise_missing_secret_key_in_production