Last active
July 6, 2022 13:28
-
-
Save trnktms/924a191b3de00b6eb1b27a5f003b2ebf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async rewrites() { | |
// When in connected mode we want to proxy Sitecore paths off to Sitecore | |
return [ | |
// media items | |
{ | |
source: '/-/:path*', | |
destination: `${jssConfig.sitecoreApiHost}/-/:path*`, | |
} | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment