Prevent indexing on docs outside of production (#1054)

* Prevent indexing on docs outside of production

* Add dockerfile arg

* Rename args

* Add logs

* Move arg to the right dockerfile

* Remove log
This commit is contained in:
Emilien Chauvet
2023-08-07 18:20:31 +02:00
committed by GitHub
parent 2f0bee5e34
commit de6ebd96c5
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@ const config = {
tagline: 'Dinosaurs are cool',
favicon: 'img/logo-square-dark.ico',
// Prevent search engines from indexing the doc for selected environments
noIndex: process.env.SHOULD_INDEX_DOC === 'false',
// Set the production url of your site here
url: 'https://docs.twenty.com',
// Set the /<baseUrl>/ pathname under which your site is served

View File

@ -2,6 +2,8 @@ FROM node:18.16.0-alpine as docs
WORKDIR /app/docs
ARG SHOULD_INDEX_DOC
COPY ./docs/package.json .
COPY ./docs/yarn.lock .
RUN yarn install --prod