-6
next.constants.mjs
-6
next.constants.mjs
···
160
160
export const ORAMA_SYNC_BATCH_SIZE = 50;
161
161
162
162
/**
163
-
* The default heartbeat interval to use when communicating with Orama Cloud.
164
-
* Default should be 3500ms (3.5 seconds).
165
-
*/
166
-
export const ORAMA_CLOUD_HEARTBEAT_INTERVAL = 3500;
167
-
168
-
/**
169
163
* The default Orama Cloud endpoint to use when searching with Orama Cloud.
170
164
*/
171
165
export const ORAMA_CLOUD_ENDPOINT =
-3
next.orama.mjs
-3
next.orama.mjs
···
3
3
4
4
import {
5
5
DEFAULT_ORAMA_QUERY_PARAMS,
6
-
ORAMA_CLOUD_HEARTBEAT_INTERVAL,
7
6
ORAMA_CLOUD_ENDPOINT,
8
7
ORAMA_CLOUD_API_KEY,
9
8
} from './next.constants.mjs';
···
16
15
endpoint: ORAMA_CLOUD_ENDPOINT,
17
16
api_key: ORAMA_CLOUD_API_KEY,
18
17
});
19
-
20
-
orama.startHeartBeat({ frequency: ORAMA_CLOUD_HEARTBEAT_INTERVAL });
21
18
22
19
return {
23
20
search: orama.search.bind(orama),