mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
Merge pull request #4026 from mattermost/MM-47238_boards-dev-server-url
MM-47238 Add MM_BOARDS_DEV_SERVER_URL environment variable for MPA
This commit is contained in:
commit
41e472deec
@ -203,9 +203,14 @@ config.plugins.push(new webpack.DefinePlugin({
|
||||
}));
|
||||
|
||||
if (NPM_TARGET === 'start:product') {
|
||||
const url = new URL('http://localhost:9006');
|
||||
const url = new URL(process.env.MM_BOARDS_DEV_SERVER_URL ?? 'http://localhost:9006');
|
||||
|
||||
config.devServer = {
|
||||
https: url.protocol === 'https:' && {
|
||||
minVersion: process.env.MM_SERVICESETTINGS_TLSMINVER,
|
||||
key: process.env.MM_SERVICESETTINGS_TLSKEYFILE,
|
||||
cert: process.env.MM_SERVICESETTINGS_TLSCERTFILE,
|
||||
},
|
||||
host: url.hostname,
|
||||
port: url.port,
|
||||
devMiddleware: {
|
||||
|
Loading…
Reference in New Issue
Block a user