setup env, local settings, cdn url