Skip to content

Commit 3352f38

Browse files
docs(recipes): fix servers.md http.createServer example (#1150)
Small copypaste mistake
1 parent 98b72c3 commit 3352f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes/servers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const apiProxy = createProxyMiddleware({
3333
changeOrigin: true, // for vhosted sites, changes host header to match to target's host
3434
});
3535

36-
const server = http.createServer(jsonPlaceholderProxy);
36+
const server = http.createServer(apiProxy);
3737

3838
server.listen(3000);
3939
```

0 commit comments

Comments
 (0)