Skip to content

Commit 3486687

Browse files
Merge 8b71237 into 5dfd5b9
2 parents 5dfd5b9 + 8b71237 commit 3486687

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

packages/firestore/src/api/cache_config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ export function memoryLocalCache(
248248

249249
/**
250250
* An settings object to configure an `PersistentLocalCache` instance.
251+
*
252+
* Persistent cache cannot be used in a Node.js environment.
251253
*/
252254
export type PersistentCacheSettings = {
253255
/**
@@ -271,6 +273,8 @@ export type PersistentCacheSettings = {
271273
/**
272274
* Creates an instance of `PersistentLocalCache`. The instance can be set to
273275
* `FirestoreSettings.cache` to tell the SDK which cache layer to use.
276+
*
277+
* Persistent cache cannot be used in a Node.js environment.
274278
*/
275279
export function persistentLocalCache(
276280
settings?: PersistentCacheSettings

packages/firestore/src/api/database.ts

+2
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ export function configureFirestore(firestore: Firestore): void {
320320
* * unimplemented: The browser is incompatible with the offline
321321
* persistence implementation.
322322
*
323+
* Persistence cannot be used in a Node.js environment.
324+
*
323325
* @param firestore - The {@link Firestore} instance to enable persistence for.
324326
* @param persistenceSettings - Optional settings object to configure
325327
* persistence.

packages/firestore/src/api/settings.ts

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export { DEFAULT_HOST } from '../lite-api/settings';
2525
/**
2626
* Settings that can be passed to `enableIndexedDbPersistence()` to configure
2727
* Firestore persistence.
28+
*
29+
* Persistence cannot be used in a Node.js environment.
2830
*/
2931
export interface PersistenceSettings {
3032
/**

0 commit comments

Comments
 (0)