Skip to content
← Public packages

@kentcdodds/package-app-kit

Design tokens, PWA install/update, About/version, cache helpers, and optional realtime notes sync for Kody package apps.

FollowFork

starter-tanstack/app/controllers/version.ts

8 lines · 231 B · TypeScript
import { readRecordedVersion } from '../../src/record-version.ts'

export async function version() {
	const recorded = await readRecordedVersion()
	return Response.json(recorded, {
		headers: { 'cache-control': 'no-store' },
	})
}