Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

add cache dir env

Changed files
+2 -2
hosting-service
src
+1 -1
hosting-service/src/index.ts
··· 5 5 import { mkdirSync, existsSync } from 'fs'; 6 6 7 7 const PORT = process.env.PORT ? parseInt(process.env.PORT) : 3001; 8 - const CACHE_DIR = './cache/sites'; 8 + const CACHE_DIR = process.env.CACHE_DIR || './cache/sites'; 9 9 10 10 // Ensure cache directory exists 11 11 if (!existsSync(CACHE_DIR)) {
+1 -1
hosting-service/src/lib/utils.ts
··· 5 5 import { safeFetchJson, safeFetchBlob } from './safe-fetch'; 6 6 import { CID } from 'multiformats'; 7 7 8 - const CACHE_DIR = './cache/sites'; 8 + const CACHE_DIR = process.env.CACHE_DIR || './cache/sites'; 9 9 const CACHE_TTL = 14 * 24 * 60 * 60 * 1000; // 14 days cache TTL 10 10 11 11 interface CacheMetadata {