From 69195d416731804f112405cd9bca442443cf308c Mon Sep 17 00:00:00 2001 From: sc-nikolaoslazaridis Date: Mon, 11 Apr 2022 21:20:14 +0300 Subject: [PATCH 1/7] Created a .env file with all the variables we pull from process.env in the config.js file (with empty values). Added the dotenv package to load the variables from the .env file. --- .../src/templates/node-headless-ssr-proxy/.env | 7 +++++++ .../src/templates/node-headless-ssr-proxy/package.json | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env new file mode 100644 index 0000000000..9a71dcbb81 --- /dev/null +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env @@ -0,0 +1,7 @@ +SITECORE_JSS_APP_NAME= +SITECORE_JSS_SERVER_BUNDLE= +SITECORE_API_HOST= +SITECORE_API_KEY= +SITECORE_LAYOUT_SERVICE_ROUTE= +SITECORE_PATH_REWRITE_EXCLUDE_ROUTES= +SITECORE_ENABLE_DEBUG= diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/package.json b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/package.json index bae2ad4421..19cfe66247 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/package.json +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/package.json @@ -29,7 +29,8 @@ "agentkeepalive": "^4.1.3", "compression": "~1.7.3", "express": "~4.16.4", - "memory-cache": "^0.2.0" + "memory-cache": "^0.2.0", + "dotenv": "^16.0.0" }, "private": true } From d49539335ae26b17823f60b0b57fca91cf23d568 Mon Sep 17 00:00:00 2001 From: sc-nikolaoslazaridis Date: Mon, 11 Apr 2022 22:30:54 +0300 Subject: [PATCH 2/7] Implemented the same changes to node-headless-ssr-experience-edge template. Added the require(dotenv).config() to the app entry points (index.js). --- .../node-headless-ssr-experience-edge/.env | 6 +++++ .../index.js | 7 +++-- .../package.json | 3 ++- .../node-headless-ssr-proxy/config.js | 26 +++++++++---------- .../node-headless-ssr-proxy/index.js | 3 ++- 5 files changed, 28 insertions(+), 17 deletions(-) create mode 100644 packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env new file mode 100644 index 0000000000..fe5614aa59 --- /dev/null +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env @@ -0,0 +1,6 @@ +SITECORE_JSS_APP_NAME= +SITECORE_JSS_SERVER_BUNDLE= +SITECORE_EXPERIENCE_EDGE_ENDPOINT= +SITECORE_API_KEY= +PORT= +DEFAULT_LANGUAGE= \ No newline at end of file diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js index f9c6985e8b..63318dc6c7 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js @@ -1,7 +1,8 @@ const express = require('express'); const compression = require('compression'); +require('dotenv').config(); const { GraphQLLayoutService } = require('@sitecore-jss/sitecore-jss/layout'); -const { GraphQLDictionaryService} = require('@sitecore-jss/sitecore-jss/i18n'); +const { GraphQLDictionaryService } = require('@sitecore-jss/sitecore-jss/i18n'); const config = require('./config'); const server = express(); @@ -89,7 +90,9 @@ server.use(async (req, res) => { const viewBag = { dictionary: {} }; - viewBag.dictionary = await dictionaryService.fetchDictionaryData(layoutData.sitecore.context.language); + viewBag.dictionary = await dictionaryService.fetchDictionaryData( + layoutData.sitecore.context.language + ); renderView( (err, result) => { diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/package.json b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/package.json index 22e19577a8..691f9fa6e8 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/package.json +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/package.json @@ -26,7 +26,8 @@ "dependencies": { "@sitecore-jss/sitecore-jss": "^21.0.0-canary", "compression": "^1.7.4", - "express": "^4.17.1" + "express": "^4.17.1", + "dotenv": "^16.0.0" }, "private": true } diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/config.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/config.js index 67c31ccb9a..aa9b0a314d 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/config.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/config.js @@ -1,6 +1,6 @@ const fs = require('fs'); const { RestDictionaryService } = require('@sitecore-jss/sitecore-jss/i18n'); -const httpAgents = require("./httpAgents"); +const httpAgents = require('./httpAgents'); /** * The JSS application name defaults to providing part of the bundle path as well as the dictionary service endpoint. @@ -17,7 +17,7 @@ const serverBundle = require(bundlePath); httpAgents.setUpDefaultAgents(serverBundle); -const apiHost = process.env.SITECORE_API_HOST || 'http://my.sitecore.host' +const apiHost = process.env.SITECORE_API_HOST || 'http://my.sitecore.host'; appName = appName || serverBundle.appName; @@ -96,16 +96,16 @@ const config = { // when proxying to a SSL Sitecore instance. // This is a major security issue, so NEVER EVER set this to false // outside local development. Use a real CA-issued certificate. - secure: true, - xfwd: true - }, - /** - * Custom headers handling. - * You can remove different headers from proxy response. - */ - setHeaders: (req, serverRes, proxyRes) => { - delete proxyRes.headers['content-security-policy']; - }, + secure: true, + xfwd: true, + }, + /** + * Custom headers handling. + * You can remove different headers from proxy response. + */ + setHeaders: (req, serverRes, proxyRes) => { + delete proxyRes.headers['content-security-policy']; + }, /** * Custom error handling in case our app fails to render. * Return null to pass through server response, or { content, statusCode } @@ -139,7 +139,7 @@ const config = { return {}; } - return dictionaryService.fetchDictionaryData(language).then(phrases => { + return dictionaryService.fetchDictionaryData(language).then((phrases) => { const viewBag = { dictionary: phrases, }; diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js index dd12e29354..33c7f3f175 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js @@ -1,5 +1,6 @@ const express = require('express'); const compression = require('compression'); +require('dotenv').config(); const scProxy = require('@sitecore-jss/sitecore-jss-proxy').default; const config = require('./config'); const cacheMiddleware = require('./cacheMiddleware'); @@ -38,7 +39,7 @@ server.use((req, res, next) => { } next(); -}) +}); // For any other requests, we render app routes server-side and return them server.use('*', scProxy(config.serverBundle.renderView, config, config.serverBundle.parseRouteUrl)); From 52bb689347805077ba8121e5f2460c18c3a6d6de Mon Sep 17 00:00:00 2001 From: sc-nikolaoslazaridis Date: Tue, 12 Apr 2022 10:53:25 +0300 Subject: [PATCH 3/7] Added comments on how to use the feature and changed .env files to .env.example --- .../{.env => .env.example} | 0 .../templates/node-headless-ssr-experience-edge/index.js | 9 ++++++++- .../node-headless-ssr-proxy/{.env => .env.example} | 0 .../src/templates/node-headless-ssr-proxy/index.js | 9 ++++++++- 4 files changed, 16 insertions(+), 2 deletions(-) rename packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/{.env => .env.example} (100%) rename packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/{.env => .env.example} (100%) diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env.example similarity index 100% rename from packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env rename to packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env.example diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js index 63318dc6c7..46c1559467 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js @@ -1,6 +1,13 @@ const express = require('express'); const compression = require('compression'); -require('dotenv').config(); + +/** + * Usage of .env file can be enabled here by + * uncommenting the next require and + * creating a .env file based on .env.example + */ +//require('dotenv').config(); + const { GraphQLLayoutService } = require('@sitecore-jss/sitecore-jss/layout'); const { GraphQLDictionaryService } = require('@sitecore-jss/sitecore-jss/i18n'); const config = require('./config'); diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env.example similarity index 100% rename from packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env rename to packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env.example diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js index 33c7f3f175..d4700e824e 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js @@ -1,6 +1,13 @@ const express = require('express'); const compression = require('compression'); -require('dotenv').config(); + +/** + * Usage of .env file can be enabled here by + * uncommenting the next require and + * creating a .env file based on .env.example + */ +//require('dotenv').config(); + const scProxy = require('@sitecore-jss/sitecore-jss-proxy').default; const config = require('./config'); const cacheMiddleware = require('./cacheMiddleware'); From 664edd012c5fc4dca224100a780933cc12394d0a Mon Sep 17 00:00:00 2001 From: sc-nikolaoslazaridis Date: Tue, 12 Apr 2022 11:21:38 +0300 Subject: [PATCH 4/7] Revert "Added comments on how to use the feature and changed .env files to .env.example" This reverts commit 52bb689347805077ba8121e5f2460c18c3a6d6de. --- .../{.env.example => .env} | 0 .../templates/node-headless-ssr-experience-edge/index.js | 9 +-------- .../node-headless-ssr-proxy/{.env.example => .env} | 0 .../src/templates/node-headless-ssr-proxy/index.js | 9 +-------- 4 files changed, 2 insertions(+), 16 deletions(-) rename packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/{.env.example => .env} (100%) rename packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/{.env.example => .env} (100%) diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env.example b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env similarity index 100% rename from packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env.example rename to packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js index 46c1559467..63318dc6c7 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js @@ -1,13 +1,6 @@ const express = require('express'); const compression = require('compression'); - -/** - * Usage of .env file can be enabled here by - * uncommenting the next require and - * creating a .env file based on .env.example - */ -//require('dotenv').config(); - +require('dotenv').config(); const { GraphQLLayoutService } = require('@sitecore-jss/sitecore-jss/layout'); const { GraphQLDictionaryService } = require('@sitecore-jss/sitecore-jss/i18n'); const config = require('./config'); diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env.example b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env similarity index 100% rename from packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env.example rename to packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js index d4700e824e..33c7f3f175 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js @@ -1,13 +1,6 @@ const express = require('express'); const compression = require('compression'); - -/** - * Usage of .env file can be enabled here by - * uncommenting the next require and - * creating a .env file based on .env.example - */ -//require('dotenv').config(); - +require('dotenv').config(); const scProxy = require('@sitecore-jss/sitecore-jss-proxy').default; const config = require('./config'); const cacheMiddleware = require('./cacheMiddleware'); From bb324668b7c77b05774f9c2967b698403a2a2b05 Mon Sep 17 00:00:00 2001 From: sc-nikolaoslazaridis Date: Tue, 12 Apr 2022 11:29:30 +0300 Subject: [PATCH 5/7] Added PORT variable to node-headless-ssr-proxy/.env --- .../src/templates/node-headless-ssr-proxy/.env | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env index 9a71dcbb81..5ecc105aa1 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env @@ -5,3 +5,4 @@ SITECORE_API_KEY= SITECORE_LAYOUT_SERVICE_ROUTE= SITECORE_PATH_REWRITE_EXCLUDE_ROUTES= SITECORE_ENABLE_DEBUG= +PORT= From 707733ffdf115245eefa6efcf81c6b6e1e095004 Mon Sep 17 00:00:00 2001 From: sc-nikolaoslazaridis Date: Mon, 11 Apr 2022 21:20:14 +0300 Subject: [PATCH 6/7] Created a .env file with all the variables we pull from process.env (with empty values). Added the dotenv package to load the variables from the .env file. Calling the dotenv config() in the index.js. --- .../node-headless-ssr-experience-edge/.env | 6 +++++ .../index.js | 7 +++-- .../package.json | 3 ++- .../templates/node-headless-ssr-proxy/.env | 8 ++++++ .../node-headless-ssr-proxy/config.js | 26 +++++++++---------- .../node-headless-ssr-proxy/index.js | 3 ++- .../node-headless-ssr-proxy/package.json | 3 ++- 7 files changed, 38 insertions(+), 18 deletions(-) create mode 100644 packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env create mode 100644 packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env new file mode 100644 index 0000000000..fe5614aa59 --- /dev/null +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env @@ -0,0 +1,6 @@ +SITECORE_JSS_APP_NAME= +SITECORE_JSS_SERVER_BUNDLE= +SITECORE_EXPERIENCE_EDGE_ENDPOINT= +SITECORE_API_KEY= +PORT= +DEFAULT_LANGUAGE= \ No newline at end of file diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js index f9c6985e8b..63318dc6c7 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/index.js @@ -1,7 +1,8 @@ const express = require('express'); const compression = require('compression'); +require('dotenv').config(); const { GraphQLLayoutService } = require('@sitecore-jss/sitecore-jss/layout'); -const { GraphQLDictionaryService} = require('@sitecore-jss/sitecore-jss/i18n'); +const { GraphQLDictionaryService } = require('@sitecore-jss/sitecore-jss/i18n'); const config = require('./config'); const server = express(); @@ -89,7 +90,9 @@ server.use(async (req, res) => { const viewBag = { dictionary: {} }; - viewBag.dictionary = await dictionaryService.fetchDictionaryData(layoutData.sitecore.context.language); + viewBag.dictionary = await dictionaryService.fetchDictionaryData( + layoutData.sitecore.context.language + ); renderView( (err, result) => { diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/package.json b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/package.json index 22e19577a8..691f9fa6e8 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/package.json +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/package.json @@ -26,7 +26,8 @@ "dependencies": { "@sitecore-jss/sitecore-jss": "^21.0.0-canary", "compression": "^1.7.4", - "express": "^4.17.1" + "express": "^4.17.1", + "dotenv": "^16.0.0" }, "private": true } diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env new file mode 100644 index 0000000000..5ecc105aa1 --- /dev/null +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/.env @@ -0,0 +1,8 @@ +SITECORE_JSS_APP_NAME= +SITECORE_JSS_SERVER_BUNDLE= +SITECORE_API_HOST= +SITECORE_API_KEY= +SITECORE_LAYOUT_SERVICE_ROUTE= +SITECORE_PATH_REWRITE_EXCLUDE_ROUTES= +SITECORE_ENABLE_DEBUG= +PORT= diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/config.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/config.js index 67c31ccb9a..aa9b0a314d 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/config.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/config.js @@ -1,6 +1,6 @@ const fs = require('fs'); const { RestDictionaryService } = require('@sitecore-jss/sitecore-jss/i18n'); -const httpAgents = require("./httpAgents"); +const httpAgents = require('./httpAgents'); /** * The JSS application name defaults to providing part of the bundle path as well as the dictionary service endpoint. @@ -17,7 +17,7 @@ const serverBundle = require(bundlePath); httpAgents.setUpDefaultAgents(serverBundle); -const apiHost = process.env.SITECORE_API_HOST || 'http://my.sitecore.host' +const apiHost = process.env.SITECORE_API_HOST || 'http://my.sitecore.host'; appName = appName || serverBundle.appName; @@ -96,16 +96,16 @@ const config = { // when proxying to a SSL Sitecore instance. // This is a major security issue, so NEVER EVER set this to false // outside local development. Use a real CA-issued certificate. - secure: true, - xfwd: true - }, - /** - * Custom headers handling. - * You can remove different headers from proxy response. - */ - setHeaders: (req, serverRes, proxyRes) => { - delete proxyRes.headers['content-security-policy']; - }, + secure: true, + xfwd: true, + }, + /** + * Custom headers handling. + * You can remove different headers from proxy response. + */ + setHeaders: (req, serverRes, proxyRes) => { + delete proxyRes.headers['content-security-policy']; + }, /** * Custom error handling in case our app fails to render. * Return null to pass through server response, or { content, statusCode } @@ -139,7 +139,7 @@ const config = { return {}; } - return dictionaryService.fetchDictionaryData(language).then(phrases => { + return dictionaryService.fetchDictionaryData(language).then((phrases) => { const viewBag = { dictionary: phrases, }; diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js index dd12e29354..33c7f3f175 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/index.js @@ -1,5 +1,6 @@ const express = require('express'); const compression = require('compression'); +require('dotenv').config(); const scProxy = require('@sitecore-jss/sitecore-jss-proxy').default; const config = require('./config'); const cacheMiddleware = require('./cacheMiddleware'); @@ -38,7 +39,7 @@ server.use((req, res, next) => { } next(); -}) +}); // For any other requests, we render app routes server-side and return them server.use('*', scProxy(config.serverBundle.renderView, config, config.serverBundle.parseRouteUrl)); diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/package.json b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/package.json index bae2ad4421..19cfe66247 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/package.json +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-proxy/package.json @@ -29,7 +29,8 @@ "agentkeepalive": "^4.1.3", "compression": "~1.7.3", "express": "~4.16.4", - "memory-cache": "^0.2.0" + "memory-cache": "^0.2.0", + "dotenv": "^16.0.0" }, "private": true } From d70887228b0c434eb82c644bf8ee0d9e273b3d38 Mon Sep 17 00:00:00 2001 From: sc-nikolaoslazaridis Date: Tue, 12 Apr 2022 11:40:45 +0300 Subject: [PATCH 7/7] Added new line at the end to node-headless-ssr-experience-edge/.env --- .../src/templates/node-headless-ssr-experience-edge/.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env index fe5614aa59..670a2098fc 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/.env @@ -3,4 +3,4 @@ SITECORE_JSS_SERVER_BUNDLE= SITECORE_EXPERIENCE_EDGE_ENDPOINT= SITECORE_API_KEY= PORT= -DEFAULT_LANGUAGE= \ No newline at end of file +DEFAULT_LANGUAGE=