From b5a2efb0ebdf847304372458848be60df27b7d84 Mon Sep 17 00:00:00 2001 From: sebastien Date: Wed, 14 Feb 2024 12:00:18 +0100 Subject: [PATCH] use DEFAULT_PLUGIN_ID constant --- packages/docusaurus-plugin-vercel-analytics/src/options.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/docusaurus-plugin-vercel-analytics/src/options.ts b/packages/docusaurus-plugin-vercel-analytics/src/options.ts index cb2878321bf7..253aca21dbac 100644 --- a/packages/docusaurus-plugin-vercel-analytics/src/options.ts +++ b/packages/docusaurus-plugin-vercel-analytics/src/options.ts @@ -4,6 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +import {DEFAULT_PLUGIN_ID} from '@docusaurus/utils'; import {Joi} from '@docusaurus/utils-validation'; import type {OptionValidationContext} from '@docusaurus/types'; @@ -16,7 +17,7 @@ export type PluginOptions = { export type Options = Partial; const pluginOptionsSchema = Joi.object({ - id: Joi.string().valid('default').default('default'), + id: Joi.string().valid(DEFAULT_PLUGIN_ID).default(DEFAULT_PLUGIN_ID), mode: Joi.string().valid('auto', 'production', 'development').optional(), debug: Joi.boolean().optional(), });