Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213import { homedir } from 'node:os';import { join, dirname } from 'node:path';import { fileURLToPath } from 'node:url';
// Everything kavu persists lives outside the repo, under the user's home.export const home = homedir();export const configRoot = process.env.KAVU_CONFIG_DIR || join(home, '.config', 'kavu');export const configFile = join(configRoot, 'config.json');export const secretsFile = join(configRoot, 'secrets.json');
export const repoRoot = dirname(dirname(fileURLToPath(import.meta.url)));export const webRoot = join(repoRoot, 'web');