Exclude the api dir for better rendering performance