c775072b3d
The most common is "How do I set my custom domain" (answer: APP_DOMAIN) but this also requires setting LUCKY_ENV=production which requires SECRET_KEY_BASE, DATABASE_URL, and PORT
7 lines
207 B
Crystal
7 lines
207 B
Crystal
Lucky::RouteHelper.configure do |settings|
|
|
if LuckyEnv.production?
|
|
settings.base_uri = ENV.fetch("APP_DOMAIN")
|
|
else
|
|
settings.base_uri = "http://localhost:#{Lucky::ServerSettings.port}"
|
|
end
|
|
end
|