lobehub / chat-plugin-template

🧩 / 🚀 PluginTemplate - This is the plugin template for LobeChat plugin development.
MIT License
37 stars 29 forks source link

[Bug] gateway.ts 去掉 runtime 后报跨域错误 #22

Closed mushan0x0 closed 8 months ago

mushan0x0 commented 8 months ago

💻 系统环境 | Operating System

macOS

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

gateway.ts 已经去掉了,构建成功了,但是使用时报跨域错误

image

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

lobehubbot commented 8 months ago

👀 @mushan0x0 Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 8 months ago

线上版本不应该增加 gateway 字段

https://github.com/mushan0x0/lobe-pollinations-ai/blob/main/public/manifest.json#L24

,只有 dev 下才需要添加 gateway

mushan0x0 commented 8 months ago

ok 了

lobehubbot commented 8 months ago

✅ @mushan0x0
This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。