Canvix — Free & open-source graphic design tool. A community-built Canva alternative with a drag-and-drop editor, templates, shapes, text, images & one-click export. Works on desktop, tablet & mobile.
TypeScript canva-alternativecanvasdesigndesign-tooldrag-and-dropeditorgraphic-designkonvanextjsopen-sourcereactself-hostedtemplatestypescript
// Trace the file-layer header extraction precisely.
import { readFileSync, existsSync } from 'node:fs'
import { resolveProviderConfig } from '../src/lib/ai/provider'
const p = '/etc/.z-ai-config'
console.log('exists:', existsSync(p))
const raw = JSON.parse(readFileSync(p, 'utf8')) as Record<string, unknown>
console.log('raw keys:', Object.keys(raw).join(','))
console.log('token truthy:', !!raw.token, 'userId truthy:', !!raw.userId)
const cfg = resolveProviderConfig()
console.log('resolved:', cfg ? { baseUrl: cfg.baseUrl, headers: cfg.headers ? Object.keys(cfg.headers) : 'NONE' } : null)
process.exit(0)