fixing page build error for api/web