Releases: fedeya/remix-sitemap
Releases · fedeya/remix-sitemap
v3.2.0
What's Changed
- Feature: optional rate limiter on concurrent sitemap functions executed by @AjaniBilby in #62
New Contributors
- @AjaniBilby made their first contribution in #62
Full Changelog: v3.1.0...v3.2.0
v3.1.0
What's Changed
New Experimental Way to Use the Sitemap/Robots Generator
- Create a
lib/sitemap.ts
file
// lib/sitemap.ts
export const { experimental_sitemap, robots } = createSitemapGenerator({
siteUrl: 'https://example.com',
// configure other things here
})
- Create a
sitemap[.]xml
route
// app/routes/sitemap[.]xml.tsx
import { routes } from '@remix-run/dev/server-build';
import { experimental_sitemap } from '~/lib/sitemap';
export const loader: LoaderFunction = async ({ request }) => {
return await experimental_sitemap(request, routes);
}
- Create a
robots[.]txt
route
// app/routes/robots[.]txt.tsx
import { robots } from '~/lib/sitemap';
export const loader: LoaderFunction = ({ request }) => {
return robots();
}
Full Changelog: v3.0.1...v3.1.0
v3.0.1
v3.0.0
Breaking Changes
All legacy code is removed (the old way to generate dynamic routes using the export handle
in each route)
What's Changed
- Remix V2 version bump by @TheRealFlyingCoder in #54
- refactor: remove legacy code by @fedeya in #56
New Contributors
- @TheRealFlyingCoder made their first contribution in #54
Full Changelog: v2.2.7...v3.0.0