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"
9
9
# Your WordPress URL.
10
10
WORDPRESS_URL = " https://nextjs.wpengine.com/"
11
11
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 .
13
13
WORDPRESS_PREVIEW_SECRET = " ANY_RANDOM_STRING_OF_TEXT"
14
14
15
15
# Your WordPress username.
Original file line number Diff line number Diff line change 1
- import getEnvVar from '@/functions/getEnvVar'
2
1
import algoliasearch from 'algoliasearch/lite'
3
2
4
3
// Define env vars.
5
- export const algoliaIndexName = getEnvVar ( 'ALGOLIA_INDEX_NAME' , true )
4
+ export const algoliaIndexName = process . env . NEXT_PUBLIC_ALGOLIA_INDEX_NAME
6
5
export const algoliaSearchKey = process . env . NEXT_PUBLIC_ALGOLIA_SEARCH_ONLY_KEY
7
6
export const algoliaAppId = process . env . NEXT_PUBLIC_ALGOLIA_APPLICATION_ID
8
7
Original file line number Diff line number Diff line change 1
1
import { ApolloClient , HttpLink , InMemoryCache } from '@apollo/client'
2
- import getEnvVar from '@/functions/getEnvVar'
3
2
import { initializeApollo } from '../apolloConfig'
4
3
5
4
// Define env vars.
6
- export const wpApiUrlBase = getEnvVar ( 'WORDPRESS_API_URL' )
5
+ export const wpApiUrlBase = process . env . WORDPRESS_URL
7
6
export const wpPreviewSecret = process . env . WORDPRESS_PREVIEW_SECRET
8
7
const wpAppUser = process . env . WORDPRESS_APPLICATION_USERNAME
9
8
const wpAppPass = process . env . WORDPRESS_APPLICATION_PASSWORD
Original file line number Diff line number Diff line change 1
1
/**
2
- * Retrieve environment-specific var.
2
+ * Helper to retrieve environment-specific var.
3
3
*
4
4
* @author WebDevStudios
5
5
* @param {string } varName Environment variable.
You can’t perform that action at this time.
0 commit comments