init + api use
This commit is contained in:
31
bro.config.js
Normal file
31
bro.config.js
Normal file
@@ -0,0 +1,31 @@
|
||||
const pkg = require('./package')
|
||||
const webpack = require('webpack')
|
||||
|
||||
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-admin.main': '/challenge-admin',
|
||||
'link.challenge': '/challenge',
|
||||
},
|
||||
features: {
|
||||
'challenge-admin': {
|
||||
// add your features here in the format [featureName]: { value: string }
|
||||
},
|
||||
},
|
||||
config: {
|
||||
'challenge-admin.api': '/api'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user