Skip to content

Commit

Permalink
feat: use ts types for umami plugin (#407)
Browse files Browse the repository at this point in the history
* feat: use ts types for umami plugin

* docs(changeset): feat: use ts types for umami plugin
  • Loading branch information
dipakparmar authored Sep 3, 2024
1 parent 8ccb9c6 commit 59a53e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-hairs-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"docs-diary": patch
---

feat: use ts types for umami plugin
8 changes: 4 additions & 4 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import { EnumChangefreq } from 'sitemap';
import type { Options as UmamiOptions } from '@dipakparmar/docusaurus-plugin-umami';

const isDeployPreview =
process.env.VERCEL_ENV === 'development' ||
Expand Down Expand Up @@ -170,15 +171,14 @@ const config: Config = {
},
],
[
require.resolve('@dipakparmar/docusaurus-plugin-umami'),
/** @type {import('@dipakparmar/docusaurus-plugin-umami').Options} */
'@dipakparmar/docusaurus-plugin-umami',
{
websiteID: 'c401b94a-f278-46e3-bc17-72e9494f1375',
websiteID: 'c401b94a-f278-46e3-bc17-72e9494f13758',
analyticsDomain: 'analytics.dipak.io',
scriptName: 'ua.js',
dataDoNotTrack: true,
dataDomains: 'docs.dipak.tech',
},
} as UmamiOptions,
],
async function tailwindcss() {
return {
Expand Down

0 comments on commit 59a53e1

Please sign in to comment.