1
0
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:
Harrison Healey 2022-10-25 20:04:12 -04:00 committed by GitHub
commit 41e472deec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {