in source/web/src/main.js [19:59]
getRuntimeConfig().then(function(json) {
const awsconfig = {
Auth: {
region: json.awsRegion,
userPoolId: json.userPoolId,
userPoolWebClientId: json.userPoolIdClientId,
identityPoolId: json.identityPoolId
},
API: {
endpoints: [
{
name: "fileManagerApi",
endpoint: json.fileManagerApiUrl,
region: json.awsRegion
}
]
}
};
Vue.config.productionTip = false
Amplify.configure(awsconfig);
Vue.mixin({
data() {
return {
// Distribute runtime configs into every Vue component
fileManagerApi: json.fileManagerApiUrl,
awsRegion: json.awsRegion
}
},
});
Vue.use(AmplifyPlugin, AmplifyModules)
Vue.use(BootstrapVue)
Vue.use(BootstrapVueIcons)
new Vue({
router,
render: h => h(App),
}).$mount('#app')
});