diff --git a/.gitpod.yml b/.gitpod.yml index 081f8678b..c350556f5 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -14,6 +14,7 @@ tasks: echo "STATIC_URL=http://localhost:8000/staticfiles/" >> .env echo "GITPOD_WORKSPACE_URL=$GITPOD_WORKSPACE_URL" >> .env echo "HMR_PORT=8000" >> .env + echo "VUE_APP_INSTANCE_URL=$VUE_APP_INSTANCE_URL" >> .env # Prepare docker docker network create federation diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index b2f68bb64..ffab593a6 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -70,6 +70,21 @@ automatically in old and new workspaces. The scope ``funkwhale/*`` will ensure that you will be signed into our instance on every project that we're hosting, not only Funkwhale itself. +Custom instance url +^^^^^^^^^^^^^^^^^^^ + +If you don't plan to use the instance that is provided and reacts to your code changes +or you prefer to use your own instance and save a couple of clicks every time you create +a new workspace, you can set a user user environment variable in `your Gitpod settings `_. + ++--------- ----------------+-----------------------------------+-------------------------+ +| Name | Value | Scope | ++==========================+===================================+=========================+ +| ``VUE_APP_INSTANCE_URL`` | ``https://funkwhale.example.com`` | ``funkwhale/funkwhale`` | ++--------------------------+-----------------------------------+-------------------------+ + +The scope ``funkwhale/funkwhale`` will ensure that this variable works only on funkwhale. + A quick path to contribute on the front-end -------------------------------------------