fix livereload on production build, add env dependent variables