Skip to content

Commit

Permalink
fix(v2): script tags should allow unknown values (#3385)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Sep 1, 2020
1 parent 5359d61 commit 0d018a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe('normalizeConfig', () => {
src: `/analytics.js`,
async: true,
defer: true,
'data-domain': 'xyz', // See https://github.com/facebook/docusaurus/issues/3378
},
],
stylesheets: [
Expand Down
4 changes: 3 additions & 1 deletion packages/docusaurus/src/server/configValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ const ConfigSchema = Joi.object({
src: Joi.string().required(),
async: Joi.bool(),
defer: Joi.bool(),
}),
})
// See https://github.com/facebook/docusaurus/issues/3378
.unknown(),
),
stylesheets: Joi.array().items(
Joi.string(),
Expand Down

0 comments on commit 0d018a8

Please sign in to comment.