diff --git a/docs/hosting/config_file.md b/docs/hosting/config_file.md index 1044167d7..b56c90da5 100644 --- a/docs/hosting/config_file.md +++ b/docs/hosting/config_file.md @@ -1,6 +1,7 @@ ```python exec import reflex as rx from reflex_image_zoom import image_zoom +from pcweb import constants from pcweb.pages.docs import hosting from pcweb.pages import docs from pcweb.styles.styles import get_code_style, cell_style @@ -99,7 +100,7 @@ You can also specify a project uuid instead of name: project: 12345678-1234-1234-1234-1234567890ab ``` -You can go to the homepage of the project in the reflex cloud dashboard to find your project uuid in the url `https://cloud.reflex.dev/project/uuid` +You can go to the homepage of the project in the reflex cloud dashboard to find your project uuid in the url `{constants.REFLEX_CLOUD_URL.rstrip("/")}/project/uuid` ### Apt Packages diff --git a/docs/hosting/databricks.md b/docs/hosting/databricks.md index d2a314dc9..67a4967d1 100644 --- a/docs/hosting/databricks.md +++ b/docs/hosting/databricks.md @@ -1,5 +1,6 @@ ```python exec import reflex as rx +from pcweb import constants from pcweb.styles.styles import get_code_style, cell_style ``` @@ -56,7 +57,7 @@ env: ### Obtain Required Tokens 1. **Reflex Access Token** - - Visit [Reflex Cloud Tokens](https://cloud.reflex.dev/tokens/) + - Visit [Reflex Cloud Tokens]({constants.REFLEX_CLOUD_URL.rstrip("/")}/tokens/) - Navigate to Account Settings → Tokens - Create a new token and copy the value - Replace `your-token-here` in the configuration diff --git a/docs/hosting/regions.md b/docs/hosting/regions.md index 94cf19c18..bc79b293f 100644 --- a/docs/hosting/regions.md +++ b/docs/hosting/regions.md @@ -1,6 +1,7 @@ ```python exec import reflex as rx from reflex_image_zoom import image_zoom +from pcweb.constants import REFLEX_CLOUD_URL from pcweb.pages.docs import hosting from pcweb.pages import docs from pcweb.styles.styles import get_code_style, cell_style @@ -95,7 +96,7 @@ rx.el.table( rx.el.td( rx.el.div( rx.image( - src=f"https://cloud.reflex.dev/flags/{COUNTRIES_CODES[region]}.svg", + src=f"{REFLEX_CLOUD_URL.rstrip('/')}/flags/{COUNTRIES_CODES[region]}.svg", class_name="rounded-[2px] mr-2 w-5 h-4", ), REGIONS_DICT[region], diff --git a/pcweb/constants.py b/pcweb/constants.py index 06f829961..7cc6e1981 100644 --- a/pcweb/constants.py +++ b/pcweb/constants.py @@ -18,7 +18,7 @@ REFLEX_URL = "https://reflex.dev/" REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/" PYNECONE_URL = "https://pynecone.io" -REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/") +REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://build.reflex.dev/") REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/") JOBS_BOARD_URL = "https://www.ycombinator.com/companies/reflex/jobs" CHANGELOG_URL = "https://github.com/reflex-dev/reflex/releases"