import type { App } from 'vue'

const UseGlobalConfig = (app: App) => {
  const env = import.meta.env.APP_PROJECTNAME || 'zone'
  try {
    import(`./${env}.config.ts`).then(res => {
      console.log(res, 'res ======>')

      app.config.globalProperties.$globalConfig = Object.freeze(
        res?.default || {},
      )
    })
  } catch (e) {
    console.log(e)
  }
}
export default UseGlobalConfig