Skip to content

Commit caa261a

Browse files
committed
chore: use domain util
1 parent 9ea3fa1 commit caa261a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/server/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export const defaultConfig: OutputConfig = {
164164
experimentalCodehike: false,
165165
experimentalMath: false,
166166
automaticallyInferNextPrevious: true,
167-
plausibleAnalytics: '',
167+
plausibleAnalytics: false,
168168
};
169169

170170
export type FetchBundleInput = {

website/app/components/Head.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { Helmet } from 'react-helmet';
22
import { DocumentationLoader } from '~/loaders/documentation.server';
33
import codeHikeStyles from '@code-hike/mdx/dist/index.css';
4-
import domains from '../../../domains.json';
4+
import { useCustomDomain } from '~/context';
55

66
export const Head = ({ data }: { data: DocumentationLoader }) => {
77
const favicon = getFavicon({ data });
8-
const domain =
9-
domains.find(([, repository]) => repository === `${data.owner}/${data.repo}`)?.[0] || null;
10-
data.repo;
8+
const { domain } = useCustomDomain();
9+
1110
return (
1211
<Helmet>
1312
{data.config.googleAnalytics && (

0 commit comments

Comments
 (0)