Skip to content

Commit

Permalink
Added comments on how to use the feature and changed .env files to .e…
Browse files Browse the repository at this point in the history
…nv.example
  • Loading branch information
sc-nikolaoslazaridis committed Apr 12, 2022
1 parent d495393 commit 52bb689
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
Original file line number Diff line number Diff line change
@@ -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');
Expand Down

0 comments on commit 52bb689

Please sign in to comment.