scribe/config/route_helper.cr
Edward Loveall fcf3eb14d0
Initial app
2021-05-01 17:03:38 -04:00

9 lines
305 B
Crystal

Lucky::RouteHelper.configure do |settings|
if Lucky::Env.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