Skip to content

Commit

Permalink
v0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjg committed Nov 5, 2023
1 parent 6b0c836 commit 09413e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# v0.2.3

- Correctly pass DATA_DIR to nodefs storage plugin

# v0.2.3

- Add DATA_DIR environment variable to control where the nodefs storage adapter
stores its data

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automerge/automerge-repo-sync-server",
"version": "0.2.5",
"version": "0.2.6",
"main": "src/index.js",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Server {

const config = {
network: [new NodeWSServerAdapter(this.#socket)],
storage: new NodeFSStorageAdapter(),
storage: new NodeFSStorageAdapter(dir),
/** @ts-ignore @type {(import("@automerge/automerge-repo").PeerId)} */
peerId: `storage-server-${hostname}`,
// Since this is a server, we don't share generously — meaning we only sync documents they already
Expand Down

0 comments on commit 09413e8

Please sign in to comment.