Hey @jackhedaya & @vikaspotluri123
I’ve just updated our docs to include a method of setting up redirects if you’re using Ghost as a headless CMS:
https://ghost.org/docs/api/v3/gatsby/use-cases-pitfalls/#redirecting-to-external-urls
Example:
[
{
"from": "^\/(?!content/images)(.*)",
"to": "https://staticsite.com/$1",
"permanent": true
}
]
You may also need to include the following in your static site headers:
Access-Control-Allow-Origin: *
Credit to @fedetibaldo for contributing to Ghost and extending the redirects functionality