Parcel - Proxy setting
In 'package.json', you can defined the proxy table.
1
2
3
4
5
6
7
8
9
10
11
{
"proxy": {
"/api": {
"target": "http://localhost:8000"
},
"/authorization/login": {
"target": "https://example.com/login",
"secure": true
}
}
}
https://github.com/parcel-bundler/parcel/pull/3281