Proxying requests to server
/* - static server returns index.html with ScandiPWA app
/graphql - Magento 2 server handles any GraphQL reuqests
/media - Magento 2 server handles any media asset requets"proxy": "http://localhost:4000",Configuring proxy manually
npm install http-proxy-middleware --save # for NPM
yarn add http-proxy-middleware # for Yarnconst { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function(app) {
// ...
};Configuring the Magento 2 server
Last updated