Skip to content

Commit 6ebf804

Browse files
committed
expand write key scope
1 parent 88527ff commit 6ebf804

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ console.log("Creating search index deployment key");
2222

2323
await client.keys().create({
2424
description: "Search index deployment key",
25-
actions: ["documents:upsert"],
25+
actions: ["collections:*", "documents:*"],
2626
collections: ["*"],
2727
value: process.env.TYPESENSE_WRITE_API_KEY!,
2828
}).catch(handleExistsError);

0 commit comments

Comments
 (0)