From 8d4baeecaa03356ecc7efb724f5f2b6480509520 Mon Sep 17 00:00:00 2001 From: nsprenkle Date: Fri, 15 Nov 2024 16:12:17 -0500 Subject: [PATCH 1/3] feat: allow setting robots content attribute through config --- config/webpack.dev-stage.config.js | 1 + config/webpack.dev.config.js | 1 + config/webpack.prod.config.js | 1 + 3 files changed, 3 insertions(+) diff --git a/config/webpack.dev-stage.config.js b/config/webpack.dev-stage.config.js index 1a13e0312..7fd65ae52 100644 --- a/config/webpack.dev-stage.config.js +++ b/config/webpack.dev-stage.config.js @@ -160,6 +160,7 @@ module.exports = merge(commonConfig, { chunks: ['app'], FAVICON_URL: process.env.FAVICON_URL || null, OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null, + ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Allows configuring "content" attribute value of a "robots" meta tag NODE_ENV: process.env.NODE_ENV || null, }), new Dotenv({ diff --git a/config/webpack.dev.config.js b/config/webpack.dev.config.js index e3487bd93..dab40dccb 100644 --- a/config/webpack.dev.config.js +++ b/config/webpack.dev.config.js @@ -184,6 +184,7 @@ module.exports = merge(commonConfig, { chunks: ['app'], FAVICON_URL: process.env.FAVICON_URL || null, OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null, + ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Allows configuring "content" attribute value of a "robots" meta tag NODE_ENV: process.env.NODE_ENV || null, }), new Dotenv({ diff --git a/config/webpack.prod.config.js b/config/webpack.prod.config.js index 5d3778abd..12d5f8638 100644 --- a/config/webpack.prod.config.js +++ b/config/webpack.prod.config.js @@ -205,6 +205,7 @@ module.exports = merge(commonConfig, { chunks: ['app'], FAVICON_URL: process.env.FAVICON_URL || null, OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null, + ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Allows configuring "content" attribute value of a "robots" meta tag NODE_ENV: process.env.NODE_ENV || null, }), new Dotenv({ From 198a4d9955f4f453cb22827d96bec062867b4b91 Mon Sep 17 00:00:00 2001 From: nsprenkle Date: Fri, 15 Nov 2024 16:19:45 -0500 Subject: [PATCH 2/3] style: shorten line length --- config/webpack.dev-stage.config.js | 2 +- config/webpack.dev.config.js | 2 +- config/webpack.prod.config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/webpack.dev-stage.config.js b/config/webpack.dev-stage.config.js index 7fd65ae52..00e2dace3 100644 --- a/config/webpack.dev-stage.config.js +++ b/config/webpack.dev-stage.config.js @@ -160,7 +160,7 @@ module.exports = merge(commonConfig, { chunks: ['app'], FAVICON_URL: process.env.FAVICON_URL || null, OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null, - ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Allows configuring "content" attribute value of a "robots" meta tag + ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Configures "content" value of a "robots" meta tag NODE_ENV: process.env.NODE_ENV || null, }), new Dotenv({ diff --git a/config/webpack.dev.config.js b/config/webpack.dev.config.js index dab40dccb..20e78b2b5 100644 --- a/config/webpack.dev.config.js +++ b/config/webpack.dev.config.js @@ -184,7 +184,7 @@ module.exports = merge(commonConfig, { chunks: ['app'], FAVICON_URL: process.env.FAVICON_URL || null, OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null, - ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Allows configuring "content" attribute value of a "robots" meta tag + ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Configures "content" value of a "robots" meta tag NODE_ENV: process.env.NODE_ENV || null, }), new Dotenv({ diff --git a/config/webpack.prod.config.js b/config/webpack.prod.config.js index 12d5f8638..e320ceea4 100644 --- a/config/webpack.prod.config.js +++ b/config/webpack.prod.config.js @@ -205,7 +205,7 @@ module.exports = merge(commonConfig, { chunks: ['app'], FAVICON_URL: process.env.FAVICON_URL || null, OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null, - ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Allows configuring "content" attribute value of a "robots" meta tag + ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Configures "content" value of a "robots" meta tag NODE_ENV: process.env.NODE_ENV || null, }), new Dotenv({ From 6100fd8adfed3e3a397d28431dbad5e195a925ae Mon Sep 17 00:00:00 2001 From: nsprenkle Date: Mon, 18 Nov 2024 12:08:38 -0500 Subject: [PATCH 3/3] style: rename robots meta tag setting --- config/webpack.dev-stage.config.js | 2 +- config/webpack.dev.config.js | 2 +- config/webpack.prod.config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/webpack.dev-stage.config.js b/config/webpack.dev-stage.config.js index 00e2dace3..781bae862 100644 --- a/config/webpack.dev-stage.config.js +++ b/config/webpack.dev-stage.config.js @@ -160,7 +160,7 @@ module.exports = merge(commonConfig, { chunks: ['app'], FAVICON_URL: process.env.FAVICON_URL || null, OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null, - ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Configures "content" value of a "robots" meta tag + META_TAG_ROBOTS_CONTENT_ATTR: process.env.META_TAG_ROBOTS_CONTENT_ATTR || null, NODE_ENV: process.env.NODE_ENV || null, }), new Dotenv({ diff --git a/config/webpack.dev.config.js b/config/webpack.dev.config.js index 20e78b2b5..b473c3569 100644 --- a/config/webpack.dev.config.js +++ b/config/webpack.dev.config.js @@ -184,7 +184,7 @@ module.exports = merge(commonConfig, { chunks: ['app'], FAVICON_URL: process.env.FAVICON_URL || null, OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null, - ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Configures "content" value of a "robots" meta tag + META_TAG_ROBOTS_CONTENT_ATTR: process.env.META_TAG_ROBOTS_CONTENT_ATTR || null, NODE_ENV: process.env.NODE_ENV || null, }), new Dotenv({ diff --git a/config/webpack.prod.config.js b/config/webpack.prod.config.js index e320ceea4..8d8ff5104 100644 --- a/config/webpack.prod.config.js +++ b/config/webpack.prod.config.js @@ -205,7 +205,7 @@ module.exports = merge(commonConfig, { chunks: ['app'], FAVICON_URL: process.env.FAVICON_URL || null, OPTIMIZELY_PROJECT_ID: process.env.OPTIMIZELY_PROJECT_ID || null, - ROBOT_CONTENT_TAG: process.env.ROBOT_CONTENT_TAG || null, // Configures "content" value of a "robots" meta tag + META_TAG_ROBOTS_CONTENT_ATTR: process.env.META_TAG_ROBOTS_CONTENT_ATTR || null, NODE_ENV: process.env.NODE_ENV || null, }), new Dotenv({