Skip to content

Instantly share code, notes, and snippets.

@trnktms
Last active July 6, 2022 13:28
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 trnktms/ab984f8044409819cd6725424567227e to your computer and use it in GitHub Desktop.
Save trnktms/ab984f8044409819cd6725424567227e to your computer and use it in GitHub Desktop.
async rewrites() {
// When in connected mode we want to proxy Sitecore paths off to Sitecore
return [
// media items
{
source: '/-/:path*',
destination: '/api/rewrite-sitecore-media',
}
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment