Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): read pnpm config env in standalone start (#36887)

yyhbecccbf28850
diff --git a/web/scripts/copy-and-start.mjs b/web/scripts/copy-and-start.mjs
index 932a88a32df..2e048728ec1 100644
--- a/web/scripts/copy-and-start.mjs
+++ b/web/scripts/copy-and-start.mjs
@@ -94,8 +94,8 @@ const main = async () => {
await copyAllDirs(standaloneRoot)
// Start server
- const port = process.env.npm_config_port || process.env.PORT || '3000'
- const host = process.env.npm_config_host || process.env.HOSTNAME || '0.0.0.0'
+ const port = process.env.pnpm_config_port || process.env.PORT || '3000'
+ const host = process.env.pnpm_config_host || process.env.HOSTNAME || '0.0.0.0'
console.info(`Starting server on ${host}:${port}`)
console.debug(`Server script path: ${serverScriptPath}`)