fix: support gltf uploads with local preview

This commit is contained in:
Tom Boullay
2026-04-27 11:07:16 +02:00
parent 078e687e86
commit 4c3a687ff8
19 changed files with 136 additions and 98 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ export const dynamic = 'force-dynamic'
/**
* POST /api/upload/git
* Upload files, compress with Blender, and push to GitHub via Octokit.
* Upload prepared files and push to GitHub via Octokit.
*/
export async function POST(req: NextRequest) {
// --- Auth ---
@@ -42,7 +42,7 @@ export async function POST(req: NextRequest) {
}
try {
// --- Process files (compress model + textures for Git) ---
// --- Process files (preserve model + buffers, compress textures for Git) ---
const {
filesToPush,
modelFilename,