Skip to content

Commit 287f7c8

Browse files
feat: add mockable rest queries (#6)
* feat: add mockable rest queries * fix: set different query keys * rename query return data * remove console.log
1 parent 1c8627d commit 287f7c8

File tree

7 files changed

+521
-49
lines changed

7 files changed

+521
-49
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install dependencies
3535
run: npm ci
3636
- name: Build
37-
run: NODE_ENV=development BASE_URL=/rhtas-console-ui/ npm run build
37+
run: NODE_ENV=development BASE_URL=/rhtas-console-ui/ MOCK=on npm run build
3838
- name: Setup Pages
3939
uses: actions/configure-pages@v5
4040
- name: Upload artifact

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ npm run format
5252
npm run start
5353
```
5454

55+
## Environment variables
56+
57+
| ENV VAR | Description | Default value |
58+
| --------------- | ----------------------------- | -------------------------------------- |
59+
| MOCK | Enables or disables mock data | `off` |
60+
| AUTH_REQUIRED | Enable/Disable authentication | false |
61+
| OIDC_CLIENT_ID | Set Oidc Client | frontend |
62+
| OIDC_SERVER_URL | Set Oidc Server URL | `http://localhost:8090/realms/console` |
63+
| OIDC_SCOPE | Set Oidc Scope | openid |
64+
5565
## Code quality tools
5666

5767
- To keep our code formatting in check, we use [prettier](https://github.com/prettier/prettier)

0 commit comments

Comments
 (0)