Skip to content

Instantly share code, notes, and snippets.

@jgatjens
Created April 12, 2023 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgatjens/c1210c1fc426dcaf11fd5ba086cdc519 to your computer and use it in GitHub Desktop.
Save jgatjens/c1210c1fc426dcaf11fd5ba086cdc519 to your computer and use it in GitHub Desktop.
.env
# For development purposes, note Next.js supports a .env.local
# file, which is already configured to be git ignored.
# Read more about Next.js support of environment variables here:
# https://nextjs.org/docs/basic-features/environment-variables
# The public URL to use for absolute URLs, which are required when
# the Next.js app is run within Sitecore editors.
# This should match the `serverSideRenderingEngineApplicationUrl`
# in your Sitecore configuration (see \sitecore\config\sxastarter.config).
# Be sure to update these values accordingly as your public endpoint changes.
# See https://jss.sitecore.com/docs/fundamentals/services/view-engine
PUBLIC_URL=http://localhost:3000
# To secure the Sitecore editor endpoint exposed by your Next.js app
# (`/api/editing/render` by default), a secret token is used. This (client-side)
# value must match your server-side value (see \sitecore\config\sxastarter.config).
# We recommend an alphanumeric value of at least 16 characters.
JSS_EDITING_SECRET=v2q1htsjjif03uw69f9tam6lz11x4pftluhgz23y62qr
# Your Sitecore API key is needed to build the app. Typically, the API key is
# defined in `scjssconfig.json` (as `sitecore.apiKey`). This file may not exist
# when building locally (if you've never run `jss setup`), or when building in a
# higher environment (since `scjssconfig.json` is ignored from source control).
# In this case, use this environment variable to provide the value at build time.
SITECORE_API_KEY=NkpwaFRCeEhidjhkSFNyeVVTYWw5dytkMXErdW1nRWF0bUd6dmRvdFcvcz18aW50ZXJ3ZWxsaGVmMGIxLWludGVyd2VsbGhlYjJiMS1tYWluLTNjYTI=
JSS_APP_NAME=Interwell Health
HIRE_LEVER_API_KEY=tj5o3uwaco0d/+9jDvAMbiMeTK0/W04dQKr1pnoMUinMV2FJ
# Your Sitecore API hostname is needed to build the app. Typically, the API host is
# defined in `scjssconfig.json` (as `sitecore.layoutServiceHost`). This file may
# not exist when building locally (if you've never run `jss setup`), or when building
# in a higher environment (since `scjssconfig.json` is ignored from source control).
# In this case, use this environment variable to provide the value at build time.
SITECORE_API_HOST=
# Your GraphQL Edge endpoint. This is required for Sitecore Experience Edge.
# For Sitecore XM, this is typically optional. By default, the endpoint is calculated using
# the resolved Sitecore API hostname + the `graphQLEndpointPath` defined in your `package.json`.
GRAPH_QL_ENDPOINT=https://edge.sitecorecloud.io/api/graphql/v1
# Your default app language.
DEFAULT_LANGUAGE=
# The way in which layout and dictionary data is fetched from Sitecore
# If you use pull data from XM CLOUD, you must set this to GraphQL
FETCH_WITH=GraphQL
# # If you want to run the app disconnected from Sitecore, you can use the Rest
# FETCH_WITH=Rest
# Indicates whether SSG `getStaticPaths` pre-render any pages
# Set the environment variable DISABLE_SSG_FETCH=true
# to enable full ISR (Incremental Static Regeneration) flow
DISABLE_SSG_FETCH=
# Sitecore JSS npm packages utilize the debug module for debug logging.
# https://www.npmjs.com/package/debug
# Set the DEBUG environment variable to 'sitecore-jss:*' to see all logs:
DEBUG=sitecore-jss:personalize
# Or be selective and show for example only layout service logs:
#DEBUG=sitecore-jss:layout
# Or everything BUT layout service logs:
# DEBUG=sitecore-jss:*,-sitecore-jss:layout
# Your Sitecore CDP API target (specific to your data center region)
NEXT_PUBLIC_CDP_TARGET_URL=https://api-engage-us.sitecorecloud.io
# Your Sitecore CDP client key
NEXT_PUBLIC_CDP_CLIENT_KEY=6abbc7bdf0bec103c5c7fb612140f3b6
# Your Sitecore CDP point(s) of sale
# Can be provided as a single value (mypoint.com) or a multi-value JSON with locales ({"en":"en.mypoint.com","fr":"fr.mypoint.com"} etc)
NEXT_PUBLIC_CDP_POINTOFSALE={"en":"Interwellhealth.com"}
# Timeout (ms) for Sitecore CDP requests to respond within. Default is 250.
PERSONALIZE_MIDDLEWARE_CDP_TIMEOUT=400
# Timeout (ms) for Sitecore Experience Edge requests to respond within. Default is 250.
PERSONALIZE_MIDDLEWARE_EDGE_TIMEOUT=400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment