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
import { NextResponse } from 'next/server'
import { stockVideoProviders } from '@/lib/stock-video'
import { withLogging } from '@/lib/observability'
export const runtime = 'nodejs'
export const dynamic = 'force-dynamic'
/**
* GET /api/stock-video/available — public, secret-free feature
* detection for the v0.15 R6 stock-video rail: the LeftRail shows
* the Videos tab only when this answers available=true (the F2b
* pattern — no provider key configured = feature hidden, the rest
* of the editor untouched). Exposes WHICH connectors are keyed,
* never the keys themselves.
*/
async function __canvix_get() {
// A5: keys resolve console-first (stored → env), same as photos.
const providers = await stockVideoProviders()
return NextResponse.json({
available: providers.length > 0,
providers,
})
}
// v0.12.5 (H7): opt-in request logging wrapper — passthrough
// unless CANVIX_LOG=requests (see src/lib/observability.ts)
export const GET = withLogging('GET /api/stock-video/available', __canvix_get)