UNPKG
@tesler-ui/cra-template-typescript
Version:
alpha (0.3.0-alpha5)
latest (0.7.1)
0.7.1
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.3.0-alpha5
0.3.0-alpha4
0.3.0-alpha3
0.3.0-alpha2
0.3.0-alpha1
0.3.0-alpha0
0.2.0
0.1.1
0.1.0
The base TypeScript template for Create React App.
tesler.io
tesler-platform/cra-template-typescript
@tesler-ui/cra-template-typescript
/
template
/
src
/
setupProxy.js
11 lines
(9 loc)
•
217 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
{ createProxyMiddleware } =
require
(
'http-proxy-middleware'
); module.exports =
function
(
app
)
{ app.
use
(
'/api/v1'
,
createProxyMiddleware
({
target
:
'http://localhost:8080'
}) ); };