Skip to content

Commit

Permalink
REVERT LATER deploy all locales
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jan 26, 2021
1 parent 32862f2 commit 761333d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ module.exports = {

// We want to speed-up the build of pull requests.
// For crowdin PRs we want to build all locales for testing.
if (process.env.PULL_REQUEST === 'true' && !l10nPRInNetlify && !vercelDeploy) {
// FIXME REVERT LATER building all locales for testing
if (process.env.PULL_REQUEST === 'NONSESE' && !l10nPRInNetlify && !vercelDeploy) {
// eslint-disable-next-line no-console
console.log('Considering only English for SSR');
traverse(pages, 'en');
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ const pages = [
.sort((a, b) =>
a.pathname.replace('/api-docs/', '').localeCompare(b.pathname.replace('/api-docs/', '')),
)
.map((navItem) => {
return { ...navItem, linkProps: { as: navItem.pathname.replace(/^\/api-docs/, '/api') } };
.map((page) => {
return { ...page, linkProps: { as: page.pathname.replace(/^\/api-docs/, '/api') } };
}),
},
{
Expand Down

0 comments on commit 761333d

Please sign in to comment.