We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2fded4 commit fcf0aa5Copy full SHA for fcf0aa5
serverless.yml
@@ -51,7 +51,8 @@ custom:
51
- UserPoolWebClientId
52
- IdentityPoolId
53
- LoginSubDomain
54
- - CloudFrontDistribution
+ - CloudFrontDistribution-
55
+ - HttpApiUrl
56
output:
57
file: ./.env
58
format: toml
src/setupProxy.js
@@ -0,0 +1,11 @@
1
+const { createProxyMiddleware } = require('http-proxy-middleware');
2
+module.exports = function (app) {
3
+ app.use('/api/*',
4
+ createProxyMiddleware({
5
+ target: `${process.env.REACT_APP_CONNECT || process.env.REACT_APP_HTTP_API_URL}`,
6
+ changeOrigin: true,
7
+ logLevel: 'debug',
8
+ secure: false
9
+ })
10
+ );
11
+};
0 commit comments