You'll find configurable options for the application here. We use environment variables for this purpose.
REACT_APP_COMMUNITY
- URI of the communityREACT_APP_COMMUNITY_CONTAINER
- name of folder in which to store person's data of this communityREACT_APP_EMAIL_NOTIFICATIONS_SERVICE
- server providing email notifications service along the lines of solid-email-notifications; provide base url without trailing slash; notifications will be disabled if left emptyREACT_APP_EMAIL_NOTIFICATIONS_IDENTITY
- identity of the email notifications service; app will allow this identity to read person's inbox- default CreateReactApp options
BASE_URL
- this is base url for ClientID in ./public/clientid.jsonld, it's disabled in development environment by default (dynamic clientID is used), defaults to http://localhost:3000 in development, and https://sleepy.bike for buildREACT_APP_ENABLE_DEV_CLIENT_ID
- enable static ClientID in development environment (see alsoBASE_URL
option). If you set this option, you'll only be able to sign in with Solid Pod running on localhost! (dynamic clientID will be used by default)
Note: You can also specify environment variables in .env files
REACT_APP_VARIABLE1="variable" REACT_APP_VARIABLE_2="other variable" yarn start
REACT_APP_VARIABLE1="variable" REACT_APP_VARIABLE_2="other variable" yarn build
You can specify github environment variables in repository's settings. Some of github variables are named differently from the environment variables documented here
Have a look in deployment workflow to see how our github environment variables map to our app configuration options
COMMUNITY
COMMUNITY_CONTAINER
EMAIL_NOTIFICATIONS_SERVICE
EMAIL_NOTIFICATIONS_IDENTITY
- see deployment workflow for more
New configuration options make things more flexible 👍
Custom configuration options need to start with REACT_APP_
.
Add the new option in src/config/index.ts, and include some sensible default, so the app can still run without specifying anything
Make sure to also include the option in deployment workflow