set base path for page.js