Skip to content

Commit 0a4e14b

Browse files
authored
Merge pull request #611 from openedx/nsprenkle/configurable-robots-meta
feat: allow setting robots content attribute through config
2 parents fe27ca5 + 6100fd8 commit 0a4e14b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

config/webpack.dev-stage.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ module.exports = merge(commonConfig, {
160160
chunks: ['app'],
161161
FAVICON_URL: process.env.FAVICON_URL || null,
162162
OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null,
163+
META_TAG_ROBOTS_CONTENT_ATTR: process.env.META_TAG_ROBOTS_CONTENT_ATTR || null,
163164
NODE_ENV: process.env.NODE_ENV || null,
164165
}),
165166
new Dotenv({

config/webpack.dev.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ module.exports = merge(commonConfig, {
184184
chunks: ['app'],
185185
FAVICON_URL: process.env.FAVICON_URL || null,
186186
OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null,
187+
META_TAG_ROBOTS_CONTENT_ATTR: process.env.META_TAG_ROBOTS_CONTENT_ATTR || null,
187188
NODE_ENV: process.env.NODE_ENV || null,
188189
}),
189190
new Dotenv({

config/webpack.prod.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ module.exports = merge(commonConfig, {
205205
chunks: ['app'],
206206
FAVICON_URL: process.env.FAVICON_URL || null,
207207
OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null,
208+
META_TAG_ROBOTS_CONTENT_ATTR: process.env.META_TAG_ROBOTS_CONTENT_ATTR || null,
208209
NODE_ENV: process.env.NODE_ENV || null,
209210
}),
210211
new Dotenv({

0 commit comments

Comments
 (0)