mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix: windows vscode workspace (#1968)
* fix: windows vscode workspace * fix: dev commands
This commit is contained in:
Vendored
+6
-10
@@ -21,19 +21,15 @@
|
||||
},
|
||||
{
|
||||
"label": "Run DevServer CE",
|
||||
"group": "build",
|
||||
"isBackground": true,
|
||||
"type": "shell",
|
||||
"command": "yarn",
|
||||
"args": [
|
||||
"dev",
|
||||
"--",
|
||||
"--",
|
||||
"--env",
|
||||
"server=${input:stage.ce}",
|
||||
"--host",
|
||||
"0.0.0.0"
|
||||
],
|
||||
"isBackground": true,
|
||||
"args": ["dev"],
|
||||
"options": {
|
||||
"env": {
|
||||
"server": "${input:stage.ce}"
|
||||
},
|
||||
"cwd": "${workspaceFolder}/webapp/packages/product-default"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
<target name="org.jkiss.tp.cloudbeaver">
|
||||
<locations>
|
||||
<location path="../eclipse/Eclipse.app/Contents/Eclipse/plugins" type="Directory"/>
|
||||
<location path="../eclipse/plugins" type="Directory"/>
|
||||
<location path="../eclipse/eclipse/plugins" type="Directory"/>
|
||||
</locations>
|
||||
</target>
|
||||
@@ -35,7 +35,8 @@ if (fs.existsSync(certPath) && fs.existsSync(keyPath)) {
|
||||
}
|
||||
|
||||
module.exports = (env, argv) => {
|
||||
const urlObject = new URL(env.server);
|
||||
const envServer = env.server ?? process.env.server;
|
||||
const urlObject = new URL(envServer);
|
||||
|
||||
return merge(commonConfig(env, argv), {
|
||||
mode: 'development',
|
||||
@@ -49,6 +50,7 @@ module.exports = (env, argv) => {
|
||||
},
|
||||
devServer: {
|
||||
allowedHosts: 'all',
|
||||
host: '0.0.0.0',
|
||||
// port: 8080,
|
||||
client: {
|
||||
webSocketURL: 'auto://0.0.0.0:0/ws',
|
||||
@@ -57,7 +59,7 @@ module.exports = (env, argv) => {
|
||||
server,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: env.server,
|
||||
target: envServer,
|
||||
},
|
||||
'/api/ws': {
|
||||
target: `${urlObject.protocol === 'https:' ? 'wss:' : 'ws:'}//${urlObject.hostname}:${urlObject.port}/api/ws`,
|
||||
|
||||
+1
-1
@@ -18313,7 +18313,7 @@ workbox-recipes@7.0.0:
|
||||
workbox-routing "7.0.0"
|
||||
workbox-strategies "7.0.0"
|
||||
|
||||
workbox-routing@7.0.0:
|
||||
workbox-routing@7.0.0, workbox-routing@~7.x.x:
|
||||
version "7.0.0"
|
||||
resolved "https://registry.yarnpkg.com/workbox-routing/-/workbox-routing-7.0.0.tgz#6668438a06554f60645aedc77244a4fe3a91e302"
|
||||
integrity sha512-8YxLr3xvqidnbVeGyRGkaV4YdlKkn5qZ1LfEePW3dq+ydE73hUUJJuLmGEykW3fMX8x8mNdL0XrWgotcuZjIvA==
|
||||
|
||||
Reference in New Issue
Block a user