Skip to content

Commit db3bca7

Browse files
authored
ENG-8885: Update hosting links (#1773)
* leave just ruff * ENG-8885: Update hosting links
1 parent 933085e commit db3bca7

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

docs/hosting/config_file.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
```python exec
22
import reflex as rx
33
from reflex_image_zoom import image_zoom
4+
from pcweb import constants
45
from pcweb.pages.docs import hosting
56
from pcweb.pages import docs
67
from pcweb.styles.styles import get_code_style, cell_style
@@ -99,7 +100,7 @@ You can also specify a project uuid instead of name:
99100
project: 12345678-1234-1234-1234-1234567890ab
100101
```
101102
102-
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`
103+
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`
103104

104105
### Apt Packages
105106

docs/hosting/databricks.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
```python exec
22
import reflex as rx
3+
from pcweb import constants
34
from pcweb.styles.styles import get_code_style, cell_style
45

56
```
@@ -56,7 +57,7 @@ env:
5657
### Obtain Required Tokens
5758
5859
1. **Reflex Access Token**
59-
- Visit [Reflex Cloud Tokens](https://cloud.reflex.dev/tokens/)
60+
- Visit [Reflex Cloud Tokens]({constants.REFLEX_CLOUD_URL.rstrip("/")}/tokens/)
6061
- Navigate to Account Settings → Tokens
6162
- Create a new token and copy the value
6263
- Replace `your-token-here` in the configuration

docs/hosting/regions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
```python exec
22
import reflex as rx
33
from reflex_image_zoom import image_zoom
4+
from pcweb.constants import REFLEX_CLOUD_URL
45
from pcweb.pages.docs import hosting
56
from pcweb.pages import docs
67
from pcweb.styles.styles import get_code_style, cell_style
@@ -95,7 +96,7 @@ rx.el.table(
9596
rx.el.td(
9697
rx.el.div(
9798
rx.image(
98-
src=f"https://cloud.reflex.dev/flags/{COUNTRIES_CODES[region]}.svg",
99+
src=f"{REFLEX_CLOUD_URL.rstrip('/')}/flags/{COUNTRIES_CODES[region]}.svg",
99100
class_name="rounded-[2px] mr-2 w-5 h-4",
100101
),
101102
REGIONS_DICT[region],

pcweb/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
REFLEX_URL = "https://reflex.dev/"
1919
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
2020
PYNECONE_URL = "https://pynecone.io"
21-
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
21+
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://build.reflex.dev/")
2222
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
2323
JOBS_BOARD_URL = "https://www.ycombinator.com/companies/reflex/jobs"
2424
CHANGELOG_URL = "https://github.com/reflex-dev/reflex/releases"

0 commit comments

Comments
 (0)