Build Markdown news site with local AI generation and web push

This commit is contained in:
spectre committed 2026-09-12 19:06:14 +02:00
1 parent ad30f12116
commit 199dec8a1e
26 files changed
+2277 -1

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import fs from 'node:fs/promises';
import { randomBytes } from 'node:crypto';
import { fileURLToPath } from 'node:url';
const file = fileURLToPath(new URL('../search/.env', import.meta.url));
try {
await fs.writeFile(file, `SEARXNG_SECRET=${randomBytes(32).toString('hex')}\n`, {flag:'wx',mode:0o600});
console.log('Created local search configuration.');
} catch (error) { if (error.code !== 'EEXIST') throw error; }