fix(index): use basepath or configuration settings