Skip to content

Commit

Permalink
removed sitemaps rewrite (#404)
Browse files Browse the repository at this point in the history
* removed sitemaps rewrite

* removed reference to unused ENV variables
  • Loading branch information
bklaing2 authored Oct 25, 2024
1 parent fd08200 commit 1271d14
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ const COMMIT_SHA =
VERCEL_GITLAB_COMMIT_SHA ||
VERCEL_BITBUCKET_COMMIT_SHA

const DUMMY_SITEMAPS_URL = 'https://example.com'
const SITEMAPS_URL = process.env.SITEMAPS_URL || DUMMY_SITEMAPS_URL

module.exports = withSourceMaps({
swcMinify: true,
Expand Down Expand Up @@ -92,14 +90,5 @@ module.exports = withSourceMaps({
}

return config
},
// Rewrites for sitemap urls to sitemaps s3 bucket url
async rewrites() {
return [
{
source: '/sitemaps/:path*',
destination: `${SITEMAPS_URL}/sitemaps/:path*`
}
]
}
})

0 comments on commit 1271d14

Please sign in to comment.