Retrieving Project URL
Sometimes you might need to use the project URL in your code. This is useful for sending emails, creating links, or any other situation where you need to reference the project URL.
In order to make this seamless cross environments (local and cloud) a util function is provided.
To use it import the get_project_url
utility function as follows:
from abstra.common import get_project_url
from abstra.messages import send_email
url = f'{get_project_url()}/register'
print(url)
# Cloud: https://your-project-name.abstra.dev/register
# Editor: http://localhost:8000/register