Some checks failed
platform/bro-js/challenge-pl/pipeline/head There was a failure building this commit
32 lines
793 B
JavaScript
32 lines
793 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 }
|
|
},
|
|
},
|
|
config: {
|
|
'challenge.api': '/api'
|
|
}
|
|
}
|