Skip to content

Commit e1f777e

Browse files
committed
updates
1 parent 166f8f6 commit e1f777e

File tree

2 files changed

+189
-238
lines changed

2 files changed

+189
-238
lines changed

mock-api/README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,13 @@ and to run it
1717
% npm run dev
1818
```
1919

20-
The hardcoded data is limited at the moment and can be easily extended by changing the file `/mock-api/server.js`
20+
## Notes
21+
22+
- It's for local development only
23+
- `src/.env.development` is no longer required
24+
- CORS is removed, also the build flag
25+
- new file `interface/src/setupProxy.js`
26+
- new files `mock-api/server.js` with the hardcoded data. Requires its own npm packages for express
27+
28+
## ToDo
29+
- add filter rule to prevent from exposing yourself to malicious attacks when running the dev server(https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a)

0 commit comments

Comments
 (0)