diskfloppy.me/config/route_helper.cr

11 lines
360 B
Crystal
Raw Normal View History

2024-09-13 11:58:12 +00:00
# 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