mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
fix(preset-classic): fix TS build issue (#5603)
This commit is contained in:
parent
dc5ec324dc
commit
b403356dbd
|
|
@ -29,7 +29,11 @@ export default function preset(
|
|||
): Preset {
|
||||
const {siteConfig} = context;
|
||||
const {themeConfig} = siteConfig;
|
||||
const {algolia, googleAnalytics, gtag} = themeConfig as ThemeConfig;
|
||||
const {
|
||||
algolia,
|
||||
googleAnalytics,
|
||||
gtag,
|
||||
} = (themeConfig as unknown) as ThemeConfig;
|
||||
const isProd = process.env.NODE_ENV === 'production';
|
||||
|
||||
const themes: PluginConfig[] = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue