nav2/bro.config.js

32 lines
707 B
JavaScript
Raw Permalink Normal View History

2024-10-22 21:29:29 +03:00
/* eslint-disable no-undef */
/* eslint-disable @typescript-eslint/no-require-imports */
const pkg = require('./package')
module.exports = {
apiPath: 'stubs/api',
webpackConfig: {
output: {
2024-11-07 19:58:32 +03:00
publicPath: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`,
},
2024-10-22 21:29:29 +03:00
},
/* use https://admin.bro-js.ru/ to create config, navigations and features */
navigations: {
'nav2.main': '/nav2',
2024-11-07 18:00:47 +03:00
'link.nav2.by': '/by/:userId',
2024-10-22 21:29:29 +03:00
},
features: {
2024-11-07 19:58:32 +03:00
nav2: {
2024-10-22 21:29:29 +03:00
// add your features here in the format [featureName]: { value: string }
2024-11-07 19:58:32 +03:00
stars: {
value: '8',
},
buttons: {
value: 'true',
},
2024-10-22 21:29:29 +03:00
},
},
config: {
2024-11-07 19:58:32 +03:00
'nav2.api': '/api',
},
2024-10-22 21:29:29 +03:00
}