feat(plugin-vercel-analytics): add new vercel analytics plugin (#9687)

Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
ozaki 2024-02-14 13:25:39 +01:00 committed by GitHub
parent 70ba9d2d01
commit 77723a1121
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 394 additions and 2 deletions

View file

@ -0,0 +1,17 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {inject} from '@vercel/analytics';
import globalData from '@generated/globalData';
import type {PluginOptions} from './options';
const {debug, mode} = globalData['docusaurus-plugin-vercel-analytics']
?.default as PluginOptions;
inject({
mode,
debug,
});