journal.pl/bro.config.js
Primakov Alexandr Alexandrovich a7168231a1 kc params from env
2025-01-07 16:20:20 +03:00

44 lines
1020 B
JavaScript

const webpack = require('webpack');
const pkg = require('./package')
module.exports = {
apiPath: 'stubs/api',
webpackConfig: {
output: {
publicPath: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`,
},
plugins: [
new webpack.DefinePlugin({
KC_URL: process.env.KC_URL || '"https://kc.bro-js.ru"',
KC_REALM: process.env.KC_REALM || '"bro-js"',
KC_CLIENT_ID: process.env.KC_CLIENT_ID || '"microfrontend-admin"',
}),
],
},
navigations: {
'journal.main': '/journal.pl',
'exam.main': '/exam',
'link.exam.details': '/details/:courseId/:examId',
'link.journal.attendance': '/attendance/:courseId',
},
features: {
journal: {
'lesson.bar': {
on: true,
value: '',
key: 'lesson.bar',
},
'group.by.date': {
on: true,
value: '',
key: 'group.by.date',
},
},
},
config: {
'journal.back.url': '/api',
'journal.polling-interval': '10000',
},
}