refactor: consolidate upload helpers

This commit is contained in:
Tom Boullay
2026-04-27 17:20:54 +02:00
parent 43cf48cc7d
commit d049318a73
11 changed files with 38 additions and 38 deletions
+3 -7
View File
@@ -1,11 +1,7 @@
import { compressTextureBuffer } from '@/lib/texture-compression'
import { classifyAssetCategory } from '@/lib/asset-classification'
import type { ParsedFile, PreparedAssetSummary } from '@/lib/types'
interface PushFile {
path: string
contentBase64: string
}
import { getModelAssetPath } from '@/lib/model-paths'
import type { ParsedFile, PreparedAssetSummary, PushFile } from '@/lib/types'
interface PrepareGitAssetsParams {
folderName: string
@@ -61,7 +57,7 @@ export async function prepareGitAssets({
}
filesToPush.push({
path: `public/models/${folderName}/${pf.filename}`,
path: getModelAssetPath(folderName, pf.filename),
contentBase64: content.toString('base64'),
})
}