Skip to content

Commit

Permalink
Merge branch 'main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-mart authored Nov 13, 2023
2 parents 7a89bbb + 4b14360 commit ae68882
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ const nextConfig = {
source,
destination: "/api/rewrites/proxy-django-html-page",
})),
{
// Fetch sitemap from Django until sitemap generation is moved to Next
source: "/sitemap.xml",
destination: `${process.env.DJANGO_BASE_URL}/sitemap.xml`,
},
{
source: "/sitemap-dtp.xml",
destination: `${process.env.DJANGO_BASE_URL}/sitemap-dtp.xml`,
},
{
// Add trailing slash to page-like paths (/hello/world) to avoid infinite redirects
source: "/:path([^\\.]+)*",
Expand Down

0 comments on commit ae68882

Please sign in to comment.