mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 03:29:11 +02:00
fix(preset-classic): throw if preset finds GA options in theme config (#6284)
* fix(preset-classic): throw if preset finds GA options in theme config * revert * stricter
This commit is contained in:
parent
e231359f84
commit
37a84f86a5
3 changed files with 14 additions and 4 deletions
|
@ -82,7 +82,7 @@ export function validateOptions({
|
|||
export function validateThemeConfig({
|
||||
themeConfig,
|
||||
}: ThemeConfigValidationContext<ThemeConfig>): ValidationResult<ThemeConfig> {
|
||||
if (themeConfig.googleAnalytics) {
|
||||
if ('googleAnalytics' in themeConfig) {
|
||||
throw new Error(
|
||||
'The "googleAnalytics" field in themeConfig should now be specified as option for plugin-google-analytics. More information at https://github.com/facebook/docusaurus/pull/5832.',
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue