This website is built using Docusaurus, a modern static website generator.
Note
Compatible with @docusaurus/faster (rspack and swc).
Variable | For | Default | Example | Description |
---|---|---|---|---|
APP_URL |
Production | http://localhost:3000 |
Domain of the hosted app | |
BACKEND_URL |
Production | http://localhost:3002 |
Url of the API Endpoint | |
CLIENT_ID |
Production | Azure ID: Client ID | ||
TENANT_ID |
Production | Azure AD: Tenant Id | ||
API_URI |
Production | Azure AD: API Url | ||
STUDENT_USERNAME_PATTERN |
Production | @edu |
Users with usernames matching this RegExp pattern are displayed as students (regardless of admin status). If unset, all non-admin users are displayed as students. | |
TEST_USERNAMES |
Development | admin.bar@bazz.ch;test@user.ch |
To log in offline. First user is selected as default. Must all correspond to a user emails found in the API's database.* | |
OFFLINE_API |
Development | true in case of Github Codespaces |
true |
In case the project shall be fully functional, but persisting data is not needed (e.g. when run in Github Codespace), set this option to true. |
SENTRY_DSN |
Production | Sentry DSN for error tracking | ||
SENTRY_AUTH_TOKEN |
Production | Sentry Auth Token for error tracking | ||
SENTRY_ORG |
Production | Sentry Org for error tracking | ||
SENTRY_PROJECT |
Production | Sentry Project for error tracking | ||
GH_OAUTH_CLIENT_ID |
Production | Client ID for the GitHub OAuth app used for CMS auth |
* To change users, clear LocalStorage to delete the API key created upon first authentication.
To upgrade docusaurus, run:
yarn upgrade @docusaurus/core@latest @docusaurus/faster@latest @docusaurus/preset-classic@latest @docusaurus/theme-classic@latest @docusaurus/theme-common@latest @docusaurus/module-type-aliases@latest @docusaurus/plugin-rsdoctor@latest @docusaurus/tsconfig@latest @docusaurus/types@latest