Skip to content

Commit bafa731

Browse files
Remove empty devTools section and simplify devproxy command
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
1 parent 7e96467 commit bafa731

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

samples/browser-devtools-debugging/.devproxy/devproxyrc.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@
44
{
55
"name": "DevToolsPlugin",
66
"enabled": true,
7-
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
8-
"configSection": "devTools"
7+
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
98
}
109
],
1110
"urlsToWatch": [
1211
"https://jsonplaceholder.typicode.com/*"
13-
],
14-
"devTools": {
15-
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/devtoolsplugin.schema.json"
16-
}
12+
]
1713
}

samples/browser-devtools-debugging/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Version|Date|Comments
2828

2929
- Clone this repository (or [download this solution as a .ZIP file](https://pnp.github.io/download-partial/?url=https://github.com/pnp/proxy-samples/tree/main/samples/browser-devtools-debugging) and unzip it)
3030
- Navigate to the sample folder: `cd samples/browser-devtools-debugging`
31-
- Start Dev Proxy: `devproxy --config-file .devproxy/devproxyrc.json`
31+
- Start Dev Proxy: `devproxy`
3232
- Dev Proxy automatically opens a browser window with Chrome DevTools
3333
- Send a request through Dev Proxy: `curl -ikx http://127.0.0.1:8000 https://jsonplaceholder.typicode.com/posts/1`
3434
- View the request in the Chrome DevTools **Network** tab
@@ -66,16 +66,12 @@ The sample includes two configuration files:
6666
{
6767
"name": "DevToolsPlugin",
6868
"enabled": true,
69-
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
70-
"configSection": "devTools"
69+
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
7170
}
7271
],
7372
"urlsToWatch": [
7473
"https://jsonplaceholder.typicode.com/*"
75-
],
76-
"devTools": {
77-
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/devtoolsplugin.schema.json"
78-
}
74+
]
7975
}
8076
```
8177

0 commit comments

Comments
 (0)