cognovi-ai / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling and reframing distorted thinking when you've been thinking this way your whole life. The CDJ can help with that 🧠✨ -- v2 is in development!
https://thecdj.app
3 stars 0 forks source link

Remove hardcoded urls. #46

Closed hiyaryan closed 10 months ago

hiyaryan commented 10 months ago

URLs hardcoded in CORS origin and throughout various sections of the code that in the beginning of the project should be removed and be retrieved as environment variables.

Since the frontend requires urls to fetch resources from the backend and has no .env (unlike how Vite may provide one in development), it may not be possible to remove the hardcoded urls from the code. This should be looked into more.