Skip to content

Instantly share code, notes, and snippets.

@MrFrankel
Created January 12, 2017 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrFrankel/d1046ef591c0a1c88f02464f0ce7c586 to your computer and use it in GitHub Desktop.
Save MrFrankel/d1046ef591c0a1c88f02464f0ce7c586 to your computer and use it in GitHub Desktop.
const local = {
targetName: 'local',
target: 'https://localhost:4141,
changeOrigin: true,
secure: false
},
remote = {
targetName: 'remote',
requestCert: false,
rejectUnauthorized: false,
target: 'https://test.outbrain.com:8181,
secure: false,
changeOrigin: true,
autoRewrite: true
},
routingTable = {
'site': local,
'^/static': local,
'/*/': remote
};
const options = {
routingTable: routingTable,
home_port: 2109,
debug: true,
startPath: 'amplify/site/'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment