From 01c629f97b67c203a0df7ff2c943a9ac27c7db56 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Mon, 30 Nov 2020 12:07:32 +0100 Subject: [PATCH] fix EnumChangefreq issue --- packages/docusaurus-plugin-sitemap/src/pluginOptionSchema.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/docusaurus-plugin-sitemap/src/pluginOptionSchema.ts b/packages/docusaurus-plugin-sitemap/src/pluginOptionSchema.ts index 389e301e3b2f..78a98809af04 100644 --- a/packages/docusaurus-plugin-sitemap/src/pluginOptionSchema.ts +++ b/packages/docusaurus-plugin-sitemap/src/pluginOptionSchema.ts @@ -5,11 +5,12 @@ * LICENSE file in the root directory of this source tree. */ import * as Joi from 'joi'; +import {EnumChangefreq} from 'sitemap'; import {PluginOptions} from './types'; export const DEFAULT_OPTIONS: Required = { cacheTime: 600 * 1000, // 600 sec - cache purge period. - changefreq: 'weekly', + changefreq: 'weekly' as EnumChangefreq, priority: 0.5, trailingSlash: false, };