Revert "try to store slashtags in cwd"

This reverts commit 589d1ec190.
This commit is contained in:
keyan 2023-07-23 09:15:40 -05:00
parent 512b9257d2
commit bbedec853f
2 changed files with 2 additions and 4 deletions

3
.gitignore vendored
View File

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

View File

@ -1,6 +1,7 @@
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
@ -21,7 +22,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: './.slashtags'
storage: new RAM()
})
// Get the default slashtag