Skip to content

Instantly share code, notes, and snippets.

@BartoszBilejczyk
Last active January 20, 2021 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BartoszBilejczyk/3da7a382e58c5ce1d686f247f6dc6d86 to your computer and use it in GitHub Desktop.
Save BartoszBilejczyk/3da7a382e58c5ce1d686f247f6dc6d86 to your computer and use it in GitHub Desktop.
// config/product-specific/index.js
const config = require(`@/config/product-specific/${process.env.VUE_APP_DEV_PRODUCT}`);
export default config.default;
// App.vue
import config from '@/config/product-specific';
export default defineComponent({
setup() {
const products = computed(() => config.products);
return {
products
};
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment