Infer docusaurus dev server URL from browser (#1294)

Fixes hot reload when running behind the gitpod proxy
This commit is contained in:
Lukas 2022-10-19 18:05:29 +02:00 committed by GitHub
parent f1d6607db2
commit 01b3f5abba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,6 +169,18 @@ module.exports = {
};
},
}),
() => ({
name: 'webpack-config',
configureWebpack() {
return {
devServer: {
client: {
webSocketURL: 'auto://0.0.0.0:0/ws',
},
},
};
},
}),
],
themes: [
path.resolve(__dirname, 'plugins', 'woodpecker-plugins', 'dist'),