remix-seo-plus
Version:
Collection of SEO utilities like sitemap, robots.txt, etc. for a Remix application. A fork of https://github.com/balavishnuvj/remix-seo with some added bug fixes and features.
27 lines (26 loc) • 907 B
TypeScript
import { AppLoadContext } from "@remix-run/server-runtime";
export declare type SitemapEntry = {
route: string;
lastmod?: string;
changefreq?: "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never";
priority?: 0.0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0;
};
export declare type GenerateSitemapArgs = {
request: Request;
context: AppLoadContext;
};
export declare type SEOHandle = {
getSitemapEntries?: (args: GenerateSitemapArgs) => Promise<Array<SitemapEntry | null> | null> | Array<SitemapEntry | null> | null;
};
export declare type SEOOptions = {
siteUrl: string;
headers?: HeadersInit;
};
export declare type RobotsPolicy = {
type: "allow" | "disallow" | "sitemap" | "crawlDelay" | "userAgent";
value: string;
};
export declare type RobotsConfig = {
appendOnDefaultPolicies?: boolean;
headers?: HeadersInit;
};