This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ NODE_TLS_REJECT_UNAUTHORIZED="0"
99# Your WordPress URL.
1010WORDPRESS_URL = " https://nextjs.wpengine.com/"
1111
12- # This needs to match WORDPRESS_PREVIEW_SECRET constant in wp-config.php. It can be any random string.
12+ # This needs to match the WORDPRESS_PREVIEW_SECRET constant in wp-config.php. It can be any random string of text .
1313WORDPRESS_PREVIEW_SECRET = " ANY_RANDOM_STRING_OF_TEXT"
1414
1515# Your WordPress username.
Original file line number Diff line number Diff line change 1- import getEnvVar from '@/functions/getEnvVar'
21import algoliasearch from 'algoliasearch/lite'
32
43// Define env vars.
5- export const algoliaIndexName = getEnvVar ( 'ALGOLIA_INDEX_NAME' , true )
4+ export const algoliaIndexName = process . env . NEXT_PUBLIC_ALGOLIA_INDEX_NAME
65export const algoliaSearchKey = process . env . NEXT_PUBLIC_ALGOLIA_SEARCH_ONLY_KEY
76export const algoliaAppId = process . env . NEXT_PUBLIC_ALGOLIA_APPLICATION_ID
87
Original file line number Diff line number Diff line change 11import { ApolloClient , HttpLink , InMemoryCache } from '@apollo/client'
2- import getEnvVar from '@/functions/getEnvVar'
32import { initializeApollo } from '../apolloConfig'
43
54// Define env vars.
6- export const wpApiUrlBase = getEnvVar ( 'WORDPRESS_API_URL' )
5+ export const wpApiUrlBase = process . env . WORDPRESS_URL
76export const wpPreviewSecret = process . env . WORDPRESS_PREVIEW_SECRET
87const wpAppUser = process . env . WORDPRESS_APPLICATION_USERNAME
98const wpAppPass = process . env . WORDPRESS_APPLICATION_PASSWORD
Original file line number Diff line number Diff line change 11/**
2- * Retrieve environment-specific var.
2+ * Helper to retrieve environment-specific var.
33 *
44 * @author WebDevStudios
55 * @param {string } varName Environment variable.
You can’t perform that action at this time.
0 commit comments