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
Frontend development: redirect instead of proxy (#19177)
* [dev] make-user-admin: Grant all admin permissions
* [dev] Change frontend-dev to redirect instead of transparently proxy
This removes the "proxy needs network access to upstream" constraint, by relying on the developers browser
* [dev] front-end dev: more convenience, and added to readme
Copy file name to clipboardExpand all lines: components/dashboard/README.md
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,26 @@ After creating a new component, run the following to update the license header:
36
36
37
37
## How to develop in gitpod.io
38
38
39
+
### Against any* Gitpod installation
40
+
41
+
Gitpod installations have a feature that - if you are authorized - allow different versions of the dashboard. This allows for front-end development with live data and super-quick turnarounds.
42
+
43
+
**Preconditions**
44
+
1. logged in user on the respective Gitpod installation (e.g. gitpod.example.org)
45
+
1. user has the `"developer"` role
46
+
47
+
**Steps**
48
+
1. Start a workspace (on any installation), and start the dev-server with `yarn start-local`
49
+
1. Configure your browser to always send header `X-Frontend-Dev-URL` with value set to the result of `gp url 3000` to the Gitpod installation you want to modify (gitpod.example.org)
50
+
1. Visit https://gitpod.example.org, start modifying your `dashboard` in your workspace, and experience the effect live (incl. hot reloading)
51
+
52
+
*: This feature is _not_ enabled on all installations, and requires special user privileges.
53
+
54
+
### Outdated, in-workspace (?)
55
+
39
56
All the commands in this section are meant to be executed from the `components/dashboard` directory.
40
57
41
-
### 1. Environment variables
58
+
####1. Environment variables
42
59
43
60
Set the following 2 [environment variables](https://www.gitpod.io/docs/environment-variables) either [via your account settings](https://gitpod.io/variables) or [via the command line](https://www.gitpod.io/docs/environment-variables#using-the-command-line-gp-env).
44
61
@@ -63,7 +80,7 @@ Replace `AUTHENTICATION_COOKIE_VALUE` with the value of your auth cookie taken f
0 commit comments