Skip to content

Commit

Permalink
Merge pull request #224 from storybookjs/netlify-rewrites
Browse files Browse the repository at this point in the history
Changes necessary to move onto Netlify
  • Loading branch information
kylegach committed Sep 4, 2024
2 parents c1cfcab + 8f1914f commit 8ae4f2e
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions apps/frontpage/public/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[[redirects]]
from = "/addons"
to = "https://storybook-addon-catalog.netlify.app/addons"
status = 200

[[redirects]]
from = "/addons/sitemap.xml"
to = "https://storybook-frontpage.netlify.app/addons/sitemap.xml"
status = 200

[[redirects]]
from = "/addons/*"
to = "https://storybook-addon-catalog.netlify.app/addons/:splat"
status = 200

[[redirects]]
from = "/blog/sitemap.xml"
to = "https://storybook-frontpage.netlify.app/blog/sitemap.xml"
status = 200

[[redirects]]
from = "/blog/*"
to = "https://storybook-blog.netlify.app/blog/:splat"
status = 200

[[redirects]]
from = "/day/*"
to = "https://storybook-day-2023.netlify.app/day/:splat"
status = 200

[[redirects]]
from = "/showcase/sitemap.xml"
to = "https://storybook-frontpage.netlify.app/showcase/sitemap.xml"
status = 200

[[redirects]]
from = "/showcase/*"
to = "https://storybook-component-catalog.netlify.app/showcase/:splat"
status = 200

[[redirects]]
from = "/tutorials/sitemap.xml"
to = "https://storybook-frontpage.netlify.app/tutorials/sitemap.xml"
status = 200

[[redirects]]
from = "/tutorials/*"
to = "https://storybook-tutorials.netlify.app/tutorials/:splat"
status = 200

[[redirects]]
from = "/event-log"
to = "https://us-central1-storybook-warehouse.cloudfunctions.net/storybook-event-log-production-event-log"
status = 200

[[redirects]]
from = "/whats-new/v1/*"
to = "https://storybook-dx.netlify.app/.netlify/functions/whats-new/:splat"
status = 200

[[redirects]]
from = "/proxy/api/event"
to = "https://plausible.io/api/event"
status = 200

0 comments on commit 8ae4f2e

Please sign in to comment.