You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/client/README.md
+32-3Lines changed: 32 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ Some client options are controlled by environment variables. These are:
14
14
## Title and description of the app for metadata
15
15
APP_TITLE
16
16
APP_DESCRIPTION
17
-
18
-
# API
19
17
## If the app is being served in from a subfolder, the domain url must be set.
20
18
PUBLIC_URL
19
+
20
+
# API
21
21
REACT_APP_STAC_BROWSER
22
22
REACT_APP_STAC_API
23
23
@@ -31,10 +31,39 @@ REACT_APP_THEME_PRIMARY_COLOR
31
31
REACT_APP_THEME_SECONDARY_COLOR
32
32
```
33
33
34
+
**Public URL**
35
+
It is recommended to always set the `PUBLIC_URL` environment variable on a production build.
36
+
If the app is being served from a subfolder, the `PUBLIC_URL` should include the subfolder path. **Do not include a trailing slash.**
37
+
38
+
For example, if the app is being served from `https://example.com/stac-manager`, the `PUBLIC_URL` should be set to `https://example.com/stac-manager`.
39
+
40
+
> [!IMPORTANT]
41
+
> The `PUBLIC_URL` environment variable must be set before running the build script, and therefore the `.env` file cannot be used to set this variable.
42
+
34
43
You must provide a value for the `REACT_APP_STAC_API` environment variable. This should be the URL of the STAC API you wish to interact with.
35
44
36
45
If the `REACT_APP_STAC_BROWSER` environment variable is not set, [Radiant Earth's STAC Browser](https://radiantearth.github.io/stac-browser/) will be used by default, which will connect to the STAC API specified in `REACT_APP_STAC_API`.
37
46
38
47
**Auth**
39
48
The client uses Keycloack for authentication, which is disabled by default. To
40
-
enable it you must provide values for the `REACT_APP_KEYCLOAK_*` environment variables. These can be obtained through the Keycloak server.
49
+
enable it you must provide values for the `REACT_APP_KEYCLOAK_*` environment variables. These can be obtained through the Keycloak server.
50
+
51
+
### Theming
52
+
53
+
The Stac manager client allows for simple theming to give the instance a different look and feel.
54
+
The primary and secondary colors can be set using the `REACT_APP_THEME_PRIMARY_COLOR` and `REACT_APP_THEME_SECONDARY_COLOR` environment variables. These should be set to a valid CSS color value.
55
+
56
+
The app has a default logo shown below, but it can be customized by replacing the necessary files.
0 commit comments