Closed lethanhviet closed 1 month ago
hi @lethanhviet , sorry about this. this is because our prod docker image for khoj-cloud isn't made public. we'll go ahead and make that public, and then you'll have to use that.
Hey @lethanhviet, the Khoj cloud docker image has been made public. That has Resend and other production package installed. So you should be able to start that with your RESEND API KEY set as an environment variable.
Feel free to reopen this issue if you're still unable to use Resend with the Khoj cloud docker image
Describe the bug
Setting the RESEND_API_KEY on the docker environment return an error.
Traceback (most recent call last): File "/app/src/khoj/main.py", line 93, in
from khoj.configure import configure_routes, initialize_server, configure_middleware
File "/app/src/khoj/configure.py", line 44, in
from khoj.routers.api_content import configure_content, configure_search
File "/app/src/khoj/routers/api_content.py", line 37, in
from khoj.routers.helpers import (
File "/app/src/khoj/routers/helpers.py", line 90, in
from khoj.routers.email import is_resend_enabled, send_task_email
File "/app/src/khoj/routers/email.py", line 28, in
resend.api_key = RESEND_API_KEY
NameError: name 'resend' is not defined
To Reproduce
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
If self-hosted
Additional context
Add any other context about the problem here.