Skip to content

Commit 64f2b0f

Browse files
committed
tests: update region params
1 parent 11f1b82 commit 64f2b0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generators/src/main/java/com/algolia/codegen/cts/AlgoliaCTSGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public Map<String, Object> postProcessSupportingFileData(Map<String, Object> obj
106106
bundle.put("client", Utils.createClientName(importClientName, language) + "Client");
107107
bundle.put("clientPrefix", Utils.createClientName(importClientName, language));
108108
bundle.put("hasRegionalHost", hasRegionalHost);
109-
bundle.put("defaultRegion", client.equals("predict") ? "ew" : "us");
109+
bundle.put("defaultRegion", client.equals("predict") ? "eu" : "us");
110110
bundle.put("lambda", lambda);
111111

112112
ctsManager.addDataToBundle(bundle);

playground/javascript/node/predict.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const apiKey =
1010
const userId = process.env.ALGOLIA_PREDICT_USER_ID || 'user1';
1111

1212
// Init client with appId and apiKey
13-
const client = predictClient(appId, apiKey, 'ew');
13+
const client = predictClient(appId, apiKey, 'eu');
1414

1515
async function testPredict() {
1616
try {

0 commit comments

Comments
 (0)