Skip to content

Does Signaldb works on server side ? #1060

Answered by maxnowack
RSelwa asked this question in Q&A
Discussion options

You must be logged in to vote

You don't have to use the localStorage adapter with the SyncManager. You can pass a function to create your own persistence adapter instances to the constructor (see https://signaldb.js.org/sync/reference/#parameters).

On server side you could use the file system or also something like an in-memory adapter like we use in some unit tests:
https://github.com/maxnowack/signaldb/blob/main/packages/signaldb/__tests__/helpers/memoryPersistenceAdapter.ts

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@RSelwa
Comment options

@maxnowack
Comment options

Answer selected by RSelwa
@RSelwa
Comment options

@maxnowack
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants