Skip to content

Commit 17d1f48

Browse files
authored
Allow the indexer to work in CI/CD pipeline (#122)
1 parent 2fe41db commit 17d1f48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/index-api/index-api.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ const client = algoliasearch(ALGOLIA_APP_ID, ALGOLIA_ADMIN_API_KEY);
2424
const index = client.initIndex(ALGOLIA_INDEX_NAME);
2525

2626
async function scrapeAndIndex() {
27-
const browser = await puppeteer.launch({ headless: 'new' });
27+
const browser = await puppeteer.launch({
28+
headless: 'new',
29+
args: ['--no-sandbox', '--disable-setuid-sandbox']
30+
});
2831
const allRecords = [];
2932

3033
for (const path of DOC_PATHS) {

0 commit comments

Comments
 (0)