refactor: use ES6 shorthand property syntax in start.js
Replace explicit property assignments with shorthand syntax when property names match variable names (e.g., SERVER_PORT: SERVER_PORT becomes just SERVER_PORT).
This commit is contained in:
parent
042e7a2aa7
commit
1aea3374ff
1 changed files with 6 additions and 6 deletions
|
|
@ -38,8 +38,8 @@ async function startDevServer(serverOptions) {
|
||||||
cwd: resolve(__dirname, "../..", "server"),
|
cwd: resolve(__dirname, "../..", "server"),
|
||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
SERVER_PORT: SERVER_PORT,
|
SERVER_PORT,
|
||||||
CLIENT_PORT: CLIENT_PORT,
|
CLIENT_PORT,
|
||||||
MCP_PROXY_TOKEN: sessionToken,
|
MCP_PROXY_TOKEN: sessionToken,
|
||||||
MCP_ENV_VARS: JSON.stringify(envVars),
|
MCP_ENV_VARS: JSON.stringify(envVars),
|
||||||
},
|
},
|
||||||
|
|
@ -97,8 +97,8 @@ async function startProdServer(serverOptions) {
|
||||||
{
|
{
|
||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
SERVER_PORT: SERVER_PORT,
|
SERVER_PORT,
|
||||||
CLIENT_PORT: CLIENT_PORT,
|
CLIENT_PORT,
|
||||||
MCP_PROXY_TOKEN: sessionToken,
|
MCP_PROXY_TOKEN: sessionToken,
|
||||||
MCP_ENV_VARS: JSON.stringify(envVars),
|
MCP_ENV_VARS: JSON.stringify(envVars),
|
||||||
},
|
},
|
||||||
|
|
@ -128,7 +128,7 @@ async function startDevClient(clientOptions) {
|
||||||
|
|
||||||
const client = spawn(clientCommand, clientArgs, {
|
const client = spawn(clientCommand, clientArgs, {
|
||||||
cwd: resolve(__dirname, ".."),
|
cwd: resolve(__dirname, ".."),
|
||||||
env: { ...process.env, CLIENT_PORT: CLIENT_PORT },
|
env: { ...process.env, CLIENT_PORT },
|
||||||
signal: abort.signal,
|
signal: abort.signal,
|
||||||
echoOutput: true,
|
echoOutput: true,
|
||||||
});
|
});
|
||||||
|
|
@ -190,7 +190,7 @@ async function startProdClient(clientOptions) {
|
||||||
await spawnPromise("node", [inspectorClientPath], {
|
await spawnPromise("node", [inspectorClientPath], {
|
||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
CLIENT_PORT: CLIENT_PORT,
|
CLIENT_PORT,
|
||||||
INSPECTOR_URL: url,
|
INSPECTOR_URL: url,
|
||||||
},
|
},
|
||||||
signal: abort.signal,
|
signal: abort.signal,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue