const arr = ['https://img0.sp77.in/frontimg','https://img1.sp77.in/frontimg', 'https://img2.sp77.in/frontimg', 'https://img3.sp77.in/frontimg']
const config = {
	appName: import.meta.env.VITE_APP_NAME,
	appVersion: '1.0.0',
	appId: process.env.APP_ID || import.meta.env.VITE_APP_ID || 101,
	appDescription: '',
	appDownloadUrl: import.meta.env.VITE_APP_DOWNLOAD_URL,
	// appImagePrefix: 'https://storage.googleapis.com/baowang-static/h5-images/v2/' + process.env.APP_THEME,
	// appImageStartPrefix: 'https://storage.googleapis.com/baowang-static/h5-images/app/' + process.env.APP_ID,
	// appImagePrefix: import.meta.env.VITE_APP_IMAGE_URL + '/images/' + (import.meta.env.VITE_APP_THEME || 'red'),
	appImagePrefix: () => {
		return arr[Math.floor(Math.random() * arr.length)] + '/images/' + (import.meta.env.VITE_APP_THEME || 'red')
	},
	canvasImage: import.meta.env.VITE_APP_IMAGE_URL + '/images/' + (import.meta.env.VITE_APP_THEME || 'red'),
	appImageStartPrefix: import.meta.env.VITE_APP_IMAGE_URL + '/images/' + (process.env.APP_ID || import.meta.env.VITE_APP_ID || 101),
	defaultUrl: import.meta.env.VITE_APP_IMAGE_URL
}

export default config
