fix(tapbundle_serverside): allocate a free port when starting SmartStorage

This commit is contained in:
2026-05-08 11:38:07 +00:00
parent d75189251b
commit 6704807c15
3 changed files with 9 additions and 2 deletions
@@ -93,8 +93,9 @@ export class TapNodeTools {
*/
public async createSmartStorage() {
const smartstorageMod = await import('@push.rocks/smartstorage');
const port = await this.findFreePort({ startPort: 3003 });
const smartstorageInstance = await smartstorageMod.SmartStorage.createAndStart({
server: { port: 3003 },
server: { port },
storage: { cleanSlate: true },
});
return smartstorageInstance;