Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add proxy for /inbox/playground page #282

Closed
wants to merge 8 commits into from
42 changes: 42 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,45 @@
# to = "https://inbox.novu.co/inbox/playground/api/trigger"
# status = 200
# force = true

[[redirects]]
from = "/inbox/playground"
to = "https://inbox.novu.co/"
status = 200
force = true
headers = {X-From = "Netlify"}

[[redirects]]
from = "/images/*"
to = "https://inbox.novu.co/images/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}

[[redirects]]
from = "/_next/*"
to = "https://inbox.novu.co/_next/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}

[[redirects]]
from = "/novuLogo.svg"
to = "https://inbox.novu.co/novuLogo.svg"
status = 200
force = true
headers = {X-From = "Netlify"}

[[redirects]]
from = "/api/trigger"
to = "https://inbox.novu.co/api/trigger"
status = 200
force = true
headers = {X-From = "Netlify"}

[[redirects]]
from = "/api/novu"
to = "https://inbox.novu.co/api/novu"
status = 200
force = true
headers = {X-From = "Netlify"}