Revert "try to store slashtags in cwd"
This reverts commit 589d1ec190ddf26b139fa5e516450866e347ea31.
This commit is contained in:
		
							parent
							
								
									512b9257d2
								
							
						
					
					
						commit
						bbedec853f
					
				
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -51,6 +51,3 @@ sw/precache-manifest.json
 | 
			
		||||
public/workbox-*.js*
 | 
			
		||||
public/*-development.js
 | 
			
		||||
 | 
			
		||||
# slashtags
 | 
			
		||||
.slashtags/
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user