File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export const defaultConfig: OutputConfig = {
164
164
experimentalCodehike : false ,
165
165
experimentalMath : false ,
166
166
automaticallyInferNextPrevious : true ,
167
- plausibleAnalytics : '' ,
167
+ plausibleAnalytics : false ,
168
168
} ;
169
169
170
170
export type FetchBundleInput = {
Original file line number Diff line number Diff line change 1
1
import { Helmet } from 'react-helmet' ;
2
2
import { DocumentationLoader } from '~/loaders/documentation.server' ;
3
3
import codeHikeStyles from '@code-hike/mdx/dist/index.css' ;
4
- import domains from '../../../domains.json ' ;
4
+ import { useCustomDomain } from '~/context ' ;
5
5
6
6
export const Head = ( { data } : { data : DocumentationLoader } ) => {
7
7
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
+
11
10
return (
12
11
< Helmet >
13
12
{ data . config . googleAnalytics && (
You can’t perform that action at this time.
0 commit comments