Skip to content

Commit

Permalink
Add support for production kedro viz backend (#318)
Browse files Browse the repository at this point in the history
Allows development using data from a production backend server, by enabling a production sever running through `kedro viz --port 4142` to run alongside the dev server through `npm run start`, while forwarding requests to the production API backend.

Adds a dev server [proxy](https://create-react-app.dev/docs/proxying-api-requests-in-development/) to local production servers on `4142`, which activates only for requests that don't respond on the dev server.
  • Loading branch information
bru5 authored Dec 1, 2020
1 parent f774eb4 commit 802687a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib"
],
"homepage": ".",
"proxy": "http://localhost:4142/",
"scripts": {
"build": "npm run build:css && react-scripts build",
"build:css": "node-sass src/ -o src/",
Expand Down

0 comments on commit 802687a

Please sign in to comment.