add ssl_certification explenation to the readme file

This commit is contained in:
mgold1234 2023-11-14 13:05:27 +02:00 committed by Sanne Raymaekers
parent b43fbecbf3
commit 7b12710f1c

View file

@ -262,3 +262,33 @@ To generate or update API slice definitions, run:
```bash
npm run api
```
### Using MSW data in development
If you want to develop in environment with mocked data,
run the command `npm run stage-beta:msw`.
To enable msw, you must configure SSL certification on your computer.
## Mac Configurations
Follow these steps to find and paste the certification file into the 'Keychain Access' application:
1. Open the 'Keychain Access' application.
2. Select 'login' on the left side.
3. Navigate to the 'Certificates' tab.
4. Drag the certification file (usually located at /image-builder-frontend/node_modules/.cache/webpack-dev-server/server.pem) to the certification list.
5. Double-click on the added certificate (localhost certificate) to open the localhost window.
6. Open the 'Trust' dropdown menu.
7. Set all options to 'Always Trust'.
8. Close the localhost screen.
9. Run `npm run stage-beta:msw` and open the Firefox browser to verify that it is working as expected.