aboutsummaryrefslogtreecommitdiff
path: root/config/route_helper.cr
blob: ede1f32825305aa858992667bda0c0192e4e55e0 (plain)
1
2
3
4
5
6
7
8
9
10
# This is used when generating URLs for your application
Lucky::RouteHelper.configure do |settings|
  if LuckyEnv.production?
    # Example: https://my_app.com
    settings.base_uri = ENV.fetch("APP_DOMAIN")
  else
    # Set domain to the default host/port in development/test
    settings.base_uri = "http://localhost:#{Lucky::ServerSettings.port}"
  end
end