refactor: simplify upload rules and remove destination flow
This commit is contained in:
@@ -9,23 +9,6 @@ export const ALL_ALLOWED_EXTENSIONS = new Set([...MODEL_EXTENSIONS, ...TEXTURE_E
|
||||
/** Extensions tracked by Git LFS (must match .gitattributes) */
|
||||
export const LFS_EXTENSIONS = new Set(['.glb', '.gltf', '.png', '.jpg', '.jpeg', '.webp'])
|
||||
|
||||
export const REQUIRED_TEXTURES = ['roughness', 'normal', 'metalness', 'color', 'displace'] as const
|
||||
|
||||
export const VALID_DESTINATIONS = new Set<string>([
|
||||
'farm', 'map', 'powergrid', 'workshop', 'general', 'environment',
|
||||
])
|
||||
|
||||
export const DESTINATIONS = [
|
||||
{ value: 'farm', label: 'Farm' },
|
||||
{ value: 'map', label: 'Map' },
|
||||
{ value: 'powergrid', label: 'Powergrid' },
|
||||
{ value: 'workshop', label: 'Workshop' },
|
||||
{ value: 'general', label: 'General' },
|
||||
{ value: 'environment', label: 'Environment' },
|
||||
] as const
|
||||
|
||||
export type Destination = typeof DESTINATIONS[number]['value']
|
||||
|
||||
export const TMP_DIR = '/tmp/assets'
|
||||
|
||||
/** Maximum file size in bytes (100 MB) */
|
||||
|
||||
Reference in New Issue
Block a user