lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
40.97k stars 9.34k forks source link

[Bug] 使用环境变量配置 clerk 不生效 #3460

Closed Fzkin closed 1 month ago

Fzkin commented 1 month ago

📦 Environment

Docker

📌 Version

v1.9.7

💻 Operating System

Other Linux

🌐 Browser

Chrome

🐛 Bug Description

docker-compose 内配置 NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: pk_test_ZnVua3ktaGVyb24tNDAuYxxxxx CLERK_SECRET_KEY: sk_test_Y1REOxLI0FxO5bQQKa35xxxxx CLERK_WEBHOOK_SECRET: whsec_Imvk08+/17xxxxxxxx 运行后报错 Error: @clerk/nextjs: Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.

Screenshot 2024-08-13 at 4 12 34 PM

docker inspect 查看环境变量

Screenshot 2024-08-13 at 4 14 20 PM

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

lobehubbot commented 1 month ago

👀 @Fzkin

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Sun-drenched commented 1 month ago

无法在运行docker容器时操作NEXT_PUBLIC_XXX类型变量 你可以选择使用Auth0和lobe-chat-database镜像实现身份验证+服务器数据库(详见官网文档) 或者自己构建镜像。

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Unable to operate NEXT_PUBLIC_XXX type variables while running docker container You can choose to use Auth0 and lobe-chat-database mirroring to implement authentication + server database (see official website documentation for details) Or build the image yourself.

Fzkin commented 1 month ago

Thank you, it is compatible with auth0 deployment.

lobehubbot commented 1 month ago

✅ @Fzkin

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