Revert "Revert "try to store slashtags in cwd""

This reverts commit bbedec853f.
This commit is contained in:
keyan 2023-07-23 10:09:00 -05:00
parent 437faca197
commit 54d69489b9
2 changed files with 4 additions and 2 deletions

3
.gitignore vendored
View File

@ -51,3 +51,6 @@ sw/precache-manifest.json
public/workbox-*.js*
public/*-development.js
# slashtags
.slashtags/

View File

@ -1,7 +1,6 @@
import models from '../models'
import SDK, { SlashURL } from '@synonymdev/slashtags-sdk'
import { Server } from '@synonymdev/slashtags-auth'
import RAM from 'random-access-memory'
const HOUR = 1000 * 60 * 60
@ -22,7 +21,7 @@ const slashtags = global.slashtags || (() => {
console.log('initing slashtags')
const sdk = new SDK({
primaryKey: process.env.SLASHTAGS_SECRET ? Buffer.from(process.env.SLASHTAGS_SECRET, 'hex') : undefined,
storage: new RAM()
storage: './.slashtags'
})
// Get the default slashtag