High res uploads
Deploy / deploy (push) Successful in 3m16s

This commit is contained in:
twotalesanimation
2026-06-25 09:56:41 +02:00
parent d2e686335f
commit b683976cc6
9 changed files with 364 additions and 2 deletions
@@ -81,6 +81,15 @@ export async function GET(
const serializedVersion = {
...version,
fileSize: version.fileSize?.toString() ?? null,
// Expose only whether a high-res file exists, never the storage key
shot: version.shot
? {
...version.shot,
hasHighRes: !!version.shot.highResKey,
highResFilename: version.shot.highResFilename ?? null,
highResKey: undefined,
}
: null,
};
return NextResponse.json({ version: serializedVersion, comments });