Skip to content

Commit

Permalink
Comment out unconfigured RequestIdHandler (#739)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
grepsedawk authored Mar 5, 2022
1 parent 47a8080 commit 0b5b8fb
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/web_app_skeleton/config/server.cr.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b5b8fb

Please # to comment.