From 5976f65817e678fa9fb2ce98884bb739e825edae Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Tue, 9 Jul 2024 09:06:28 +0200 Subject: [PATCH] feat: use blockstore sessions (#157) Adds a `USE_SESSIONS` env var that controls whether to use blockstore sessions or not. The `session` option will be passed to `@helia/verified-fetch` accordingly. --- README.md | 1 + src/constants.ts | 2 ++ src/helia-http-gateway.ts | 8 ++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2f47b2e..c473a75 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ $ npm start | `USE_DELEGATED_ROUTING` | Whether to use the delegated routing v1 API | `true` | | `DELEGATED_ROUTING_V1_HOST` | Hostname to use for delegated routing v1 | `https://delegated-ipfs.dev` | | `USE_DHT_ROUTING` | Whether to use @libp2p/kad-dht for routing when libp2p is enabled | `true` | +| `USE_SESSIONS` | If true, use a blockstore session per IPFS/IPNS path | `true` |