refactor: consolidate upload helpers
This commit is contained in:
@@ -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'),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user