mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
fix(preset-classic): fix TS build issue (#5603)
This commit is contained in:
parent
dc5ec324dc
commit
b403356dbd
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue