Skip to content

Commit

Permalink
Jan's review
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 12, 2022
1 parent 267217a commit 2cbf834
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/next.config.js
@@ -1,7 +1,7 @@
const path = require('path');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const pkg = require('../package.json');
const nextConfigBaseline = require('./nextConfigBaseline');
const withDocsInfra = require('./nextConfigDocsInfra');
const { findPages } = require('./src/modules/utils/find');
const { LANGUAGES, LANGUAGES_SSR, LANGUAGES_IGNORE_PAGES } = require('./src/modules/constants');

Expand All @@ -13,7 +13,7 @@ const isDeployPreview = Boolean(process.env.PULL_REQUEST_ID);
// For crowdin PRs we want to build all locales for testing.
const buildOnlyEnglishLocale = isDeployPreview && !l10nPRInNetlify && !vercelDeploy;

module.exports = nextConfigBaseline({
module.exports = withDocsInfra({
webpack: (config, options) => {
const plugins = config.plugins.slice();

Expand Down
4 changes: 2 additions & 2 deletions docs/nextConfigBaseline.js → docs/nextConfigDocsInfra.js
Expand Up @@ -18,7 +18,7 @@ if (

process.env.DEPLOY_ENV = DEPLOY_ENV;

function nextConfigBaseline(nextConfig) {
function withDocsInfra(nextConfig) {
return {
trailingSlash: true,
// Can be turned on when https://github.com/vercel/next.js/issues/24640 is fixed
Expand Down Expand Up @@ -59,4 +59,4 @@ function nextConfigBaseline(nextConfig) {
};
}

module.exports = nextConfigBaseline;
module.exports = withDocsInfra;

0 comments on commit 2cbf834

Please sign in to comment.