Skip to content

[Bug] standalone 插件当发布生产后,会被调用两次 #46

@blueskyxi3

Description

@blueskyxi3

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

standalone 插件当发布生产后(如用pnpm run build 后,再用pnpm run start启动),iframe页面会被lobechat调用两次 ,有明显的渲染两次动作,后台日志也很容易看出来。但是如果是用pnpm run dev,则只会调用一次,这个是正常的。
node : v22.16.0 npm: 11.5.2。 用的是官方的插件例子 chat-plugin-template。

🚦 期望结果 | Expected Behavior

当发布生产后,也应改只调用一次,只渲染一次。

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugSomething isn't working | 缺陷

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions