From b4da7cd76e5ce4f2285a9a4a66ff06fd592f85d1 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Wed, 10 May 2023 22:17:31 -0400 Subject: ex3.11 set proxy to allow local development with relative urls --- part2/phonebook/package.json | 1 + 1 file changed, 1 insertion(+) 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", -- cgit v1.2.3