Some checks failed
platform/bro-js/challenge-pl/pipeline/head There was a failure building this commit
33 lines
904 B
JavaScript
33 lines
904 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://auth.brojs.ru"',
|
|
KC_REALM: process.env.KC_REALM || '"itpark"',
|
|
KC_CLIENT_ID: process.env.KC_CLIENT_ID || '"journal"',
|
|
}),
|
|
],
|
|
},
|
|
/* use https://admin.bro-js.ru/ to create config, navigations and features */
|
|
navigations: {
|
|
'challenge.main': '/challenge',
|
|
},
|
|
features: {
|
|
'challenge': {
|
|
// add your features here in the format [featureName]: { value: string }
|
|
'task.skip.enabled': { value: 'true' }, // Включить кнопку пропуска задания
|
|
},
|
|
},
|
|
config: {
|
|
'challenge.api': '/api'
|
|
}
|
|
}
|