import { appVersionCode } from '@/uilts/help';

export { appVersionCode }

const api = {
	production: 'https://api.denetme.net',
	pre: 'https://preapi.denetme.net',
	development: 'https://testapi.denetme.net'
}

const logApi = {
	production: 'https://log.denetme.net',
	pre: 'https://prelog.denetme.net',
	development: 'https://testlog.denetme.net'
}

const page = {
	production: "https://h5.denetme.net",
	pre: "https://preh5.denetme.net",
	development: 'https://testh5.denetme.net'
}

export const baseAPIUrl = api[process.env.NODE_ENV] + '/denet'

export const logAPIUrl = logApi[process.env.NODE_ENV] + '/denet/log'

export const pageUrl = page[process.env.NODE_ENV]

export const discordAuthRedirectUri = `${pageUrl}/auth/discordCallback`;

export const faceShareRedirectUrl = `${pageUrl}/facebook/shareCallback`;

export const payAchNoticeUrl = `${pageUrl}/ach_pay/pay_notice`;