Files
douyin/src/config/index.ts
2024-04-09 22:06:08 +08:00

18 lines
484 B
TypeScript

export default {
baseUrl: 'https://dy.ttentau.top/imgs/',
imgPath: '/imgs/',
filePreview: 'http://192.168.0.103/static/uploads/'
}
const BASE_URL_MAP = {
DEV: '',
PROD: '',
// GP_PAGES: '/dist',
GP_PAGES: '/douyin',
UNI: 'https://dy.ttentau.top'
}
export const IS_GP_PAGES = import.meta.env.VITE_ENV === 'GP_PAGES'
export const BASE_URL = BASE_URL_MAP[import.meta.env.VITE_ENV]
export const IMG_URL = BASE_URL + '/images/'
export const FILE_URL = BASE_URL + '/data/'