Skip to content

Commit

Permalink
do not deploy multiple locales in netlify deploy preview: keep it fast
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Apr 11, 2021
1 parent 9a9dc4a commit 364fa8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ const isVersioningDisabled = !!process.env.DISABLE_VERSIONING || isI18nStaging;
url: 'https://docusaurus.io',
i18n: {
defaultLocale: 'en',
locales: isI18nStaging
locales: isDeployPreview
? // Deploy preview: keep it fast!
['en']
: isI18nStaging
? // Staging locales: https://docusaurus-i18n-staging.netlify.app/
['en', 'ja']
: // Production locales
Expand Down

0 comments on commit 364fa8c

Please sign in to comment.