How do I access the value in a dynamically imported object?

How do you handle objects that are dynamically imported?

I have:
process.env.VUE_APP_CONFIG='./specialconfig/config.js'

const myobj = import(process.env.VUE_APP_CONFIG)

config.js simply has in it:
export const cat = {
name: “Bob”,
}

If I console log this in a vue component, it is returning a promise and resolves and I can see the data. What is the best approach to resolving and using it?

Hi

Are you using this in a nuxt-program? process is not available in the browser.

Figured it out using process.env variables in vue-cli project build. Thanks.