scribe/config/route_helper.cr

8 lines
207 B
Crystal
Raw Permalink Normal View History

2021-05-01 23:02:08 +02:00
Lucky::RouteHelper.configure do |settings|
if LuckyEnv.production?
2021-05-01 23:02:08 +02:00
settings.base_uri = ENV.fetch("APP_DOMAIN")
else
settings.base_uri = "http://localhost:#{Lucky::ServerSettings.port}"
end
end