UNPKG

next-sitemap

Version:
18 lines (17 loc) 488 B
import type { GetServerSidePropsContext } from 'next'; /** * Send XML response, supports legacy pages directory * @param ctx * @param content * @returns */ export declare const withXMLResponseLegacy: (ctx: GetServerSidePropsContext, content: string) => { props: {}; }; /** * Send XML response, as next13+ route response * @param content * @param headers Custom request headers * @returns */ export declare const withXMLResponse: (content: string, headers?: {}) => Response;