import { join } from 'path'; /** * Single source of truth for the app's persistent data directory. * Uses db.ts's pre-existing $HOME-based default (the one already backed by * a real persistent volume in prod) so uploads, audio prep, remux temp files, * and job rows all resolve under the same path when DATA_DIR env var is unset. * * All modules that need a data directory root import this constant instead of * defining their own inline default. */ export const DATA_DIR = process.env.DATA_DIR ?? join(process.env.HOME ?? '/tmp', '.whisper-pwa');