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:
@ -11,6 +11,9 @@ const config = {
|
|||||||
tagline: 'Dinosaurs are cool',
|
tagline: 'Dinosaurs are cool',
|
||||||
favicon: 'img/logo-square-dark.ico',
|
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
|
// Set the production url of your site here
|
||||||
url: 'https://docs.twenty.com',
|
url: 'https://docs.twenty.com',
|
||||||
// Set the /<baseUrl>/ pathname under which your site is served
|
// Set the /<baseUrl>/ pathname under which your site is served
|
||||||
|
|||||||
@ -2,6 +2,8 @@ FROM node:18.16.0-alpine as docs
|
|||||||
|
|
||||||
WORKDIR /app/docs
|
WORKDIR /app/docs
|
||||||
|
|
||||||
|
ARG SHOULD_INDEX_DOC
|
||||||
|
|
||||||
COPY ./docs/package.json .
|
COPY ./docs/package.json .
|
||||||
COPY ./docs/yarn.lock .
|
COPY ./docs/yarn.lock .
|
||||||
RUN yarn install --prod
|
RUN yarn install --prod
|
||||||
|
|||||||
Reference in New Issue
Block a user