Forum Discussion
HaidongG
13 years agoLithium Alumni (Retired)
Hi Chris,
try this config.getString, production returns "prod", stage server return "stage".
<#function isStageServer>
<#return (config.getString("phase", "stage") == "stage") />
</#function>
<#if isStageServer()>
//do something
<#else>
//do something
</#if>
and as I know, Lithium hosts its html asserts automatically with CDN,so you don't need another party's CDN hosting.