Buckets:
| /** | |
| * @param {import('next').NextConfig} nextConfig | |
| */ | |
| const sitemapPlugin = (nextConfig = {}) => { | |
| return Object.assign({}, nextConfig, { | |
| async rewrites() { | |
| return [ | |
| ...(await nextConfig.rewrites()), | |
| // sitemap route | |
| { | |
| source: "/sitemap:id([\\w-]{0,}).xml", | |
| destination: "/api/sitemap", | |
| }, | |
| ]; | |
| }, | |
| }); | |
| }; | |
| module.exports = sitemapPlugin; | |
Xet Storage Details
- Size:
- 415 Bytes
- Xet hash:
- e5d52a1dfe40390481761d49de708d2d10c7c873fc638ca3ec8fc4ad8697936a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.