Initial commit: Visigine (Vite client + Express/SQLite backend)
Container-ready via docker/ compose (frontend nginx + backend Node). Compose adjusted for Coolify on the prod server: frontend uses expose:80 (no host binding — host 8080 is taken by the Coolify proxy; Traefik routes visigine.de), backend ALLOWED_ORIGINS=https://visigine.de. Secrets stay in server/.env (git-ignored); see server/.env.example. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
19
server/lib/autofix/index.js
Normal file
19
server/lib/autofix/index.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { extractSiteData } from './extract.js'
|
||||
import { generateLlmsTxt } from './llms-txt.js'
|
||||
import { generateRobotsTxt } from './robots-txt.js'
|
||||
import { generateJsonLd } from './json-ld.js'
|
||||
import { buildReadme } from './readme.js'
|
||||
|
||||
// Returns an autofix bundle. `_siteData` is included for debug-mode payloads;
|
||||
// analyze.js strips it from the public response.
|
||||
export function generateAutofix(context) {
|
||||
const siteData = extractSiteData(context)
|
||||
return {
|
||||
llmsTxt: generateLlmsTxt(siteData),
|
||||
robotsTxt: generateRobotsTxt(siteData),
|
||||
jsonLd: generateJsonLd(siteData),
|
||||
_siteData: siteData,
|
||||
}
|
||||
}
|
||||
|
||||
export { buildReadme, extractSiteData }
|
||||
Reference in New Issue
Block a user