diff options
author | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2023-05-10 22:17:31 -0400 |
---|---|---|
committer | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2023-05-10 22:17:31 -0400 |
commit | b4da7cd76e5ce4f2285a9a4a66ff06fd592f85d1 (patch) | |
tree | 7749ee72745a7d8a8955e322cd1715c3af7f1d18 | |
parent | bb582849c2301c511d54618decde42a8102928d6 (diff) |
ex3.11 set proxy to allow local development with relative urls
-rw-r--r-- | part2/phonebook/package.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/part2/phonebook/package.json b/part2/phonebook/package.json index 0c5589f..fb86ae1 100644 --- a/part2/phonebook/package.json +++ b/part2/phonebook/package.json @@ -19,6 +19,7 @@ "eject": "react-scripts eject", "server": "json-server -p 3001 --watch db.json" }, + "proxy": "http://localhost:3001", "eslintConfig": { "extends": [ "react-app", |