Skip to content

Commit

Permalink
use DEFAULT_PLUGIN_ID constant
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Feb 14, 2024
1 parent 065f686 commit b5a2efb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docusaurus-plugin-vercel-analytics/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -16,7 +17,7 @@ export type PluginOptions = {
export type Options = Partial<PluginOptions>;

const pluginOptionsSchema = Joi.object<PluginOptions>({
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(),
});
Expand Down

0 comments on commit b5a2efb

Please sign in to comment.