[Bug] Clerk 好像无法正常接入 #2947
-
💻 Operating SystemWindows 📦 EnvironmentDocker 🌐 BrowserEdge 🐛 Bug Description🚦 Expected Behavior正常使用clerk 📷 Recurrence Steps填入环境变量打不开网页📝 Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 22 comments 6 replies
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
因为用到了 NEXT_PUBLIC 的环境变量,可能需要你自行构建一个 Docker 镜像 |
Beta Was this translation helpful? Give feedback.
-
Because the NEXT_PUBLIC environment variable is used, you may need to build a Docker image yourself. |
Beta Was this translation helpful? Give feedback.
-
佬有办法合并吗🥺 |
Beta Was this translation helpful? Give feedback.
-
Is there any way to merge? |
Beta Was this translation helpful? Give feedback.
-
@Yanyutin753 我之前看有一些方法似乎可以做到 Docker 里也能启动时注入 NEXT_PUBLIC 变量,但是我没有试过,目前也没有精力搞这个(不是主线)。 所以可能需要社区的小伙伴来帮忙看看了 |
Beta Was this translation helpful? Give feedback.
-
@Yanyutin753 I have seen some methods that can inject the NEXT_PUBLIC variable at startup in Docker, but I have not tried it, and I don’t have the energy to do this at the moment (it is not the main line), so I may need some help from friends in the community. Got it |
Beta Was this translation helpful? Give feedback.
-
好 我明天看看能不能加进去 我也记得可以的 前两天还加了next_public |
Beta Was this translation helpful? Give feedback.
-
Okay, I'll see if I can add it tomorrow. I also remember that it can be added. Next_public was added two days ago. |
Beta Was this translation helpful? Give feedback.
-
@arvinxx 佬早点休息! |
Beta Was this translation helpful? Give feedback.
-
@arvinxx Guys, take a rest early! |
Beta Was this translation helpful? Give feedback.
-
通过在dockerfile里面加上环境变量即可使用,但是作者大佬,有个问题,在网不是很好的情况下会出现这个情况,有机会修护吗! |
Beta Was this translation helpful? Give feedback.
-
@Yanyutin753 网络不好大概率不行吧。因为需要连到Clerk他们的服务器的 |
Beta Was this translation helpful? Give feedback.
-
@Yanyutin753 If the network is not good, it probably won’t work. Because we need to connect to Clerk’s server |
Beta Was this translation helpful? Give feedback.
-
@Yanyutin753 请问Dockerfile中环境变量如何添加的呢?我添加在CMD ["node", "server.js"]上面,如下: |
Beta Was this translation helpful? Give feedback.
-
@Yanyutin753 How to add environment variables in Dockerfile? I added it above CMD ["node", "server.js"] as follows: |
Beta Was this translation helpful? Give feedback.
-
@Yanyutin753 请问怎么在dockerfile中添加啊,我有点不懂,可以教一下我吗 |
Beta Was this translation helpful? Give feedback.
-
@Yanyutin753 Please tell me how to add it in the dockerfile. I don’t understand. Can you teach me? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/Yanyutin753/lobe-chat/blob/main/Dockerfile.other 替换就行 |
Beta Was this translation helpful? Give feedback.
-
我是用的docker部署,怎么才能找到这个文件呢 |
Beta Was this translation helpful? Give feedback.
-
自己打包 |
Beta Was this translation helpful? Give feedback.
-
@arvinxx @Yanyutin753 我通过分支main打包会出现这个错误,麻了
|
Beta Was this translation helpful? Give feedback.
因为用到了 NEXT_PUBLIC 的环境变量,可能需要你自行构建一个 Docker 镜像