Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
add link to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Feb 5, 2021
1 parent 6937193 commit 939886a
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Learn more about ENV variables at https://github.com/WebDevStudios/nextjs-wordpress-starter/wiki

# Tells next.js we're in development mode
VERCEL_ENV="development"

Expand Down
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://eslint.org/docs/user-guide/configuring/
module.exports = {
parserOptions: {
ecmaFeatures: {
Expand Down
3 changes: 2 additions & 1 deletion api/algolia/connector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import algoliasearch from 'algoliasearch/lite'
import getEnvVar from '@/functions/getEnvVar'
import algoliasearch from 'algoliasearch/lite'

// Define env vars.
export const algoliaIndexName = getEnvVar('ALGOLIA_INDEX_NAME', true)
Expand All @@ -8,6 +8,7 @@ export const algoliaAppId = process.env.NEXT_PUBLIC_ALGOLIA_APPLICATION_ID

const algoliaClient = algoliasearch(algoliaAppId, algoliaSearchKey)

// https://www.algolia.com/doc/api-client/getting-started/what-is-the-api-client/javascript/?client=javascript
export const searchClient = {
search(requests) {
if (requests.every(({params}) => !params.query)) {
Expand Down
5 changes: 4 additions & 1 deletion api/apolloConfig.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {useMemo} from 'react'
import merge from 'deepmerge'
import isEqual from 'lodash/isEqual'
import {useMemo} from 'react'
import {initializeWpApollo} from './wordpress/connector'

// Set global state name.
Expand All @@ -10,6 +10,9 @@ export const APOLLO_STATE_PROP_NAME = '__APOLLO_STATE__'
* Init Apollo and merge with initial state.
*
* @author WebDevStudios
*
* @see https://www.apollographql.com/docs/react/get-started/
*
* @param {object} apolloClient Apollo client instance.
* @param {*} initialState The initial state of things.
* @return {object} Apollo client instance.
Expand Down
1 change: 1 addition & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://nextjs.org/docs/advanced-features/customizing-postcss-config#customizing-plugins
module.exports = {
plugins: {
tailwindcss: {},
Expand Down
1 change: 1 addition & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://prettier.io/docs/en/configuration.html
module.exports = {
tabWidth: 2,
useTabs: false,
Expand Down
1 change: 1 addition & 0 deletions stylelint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://stylelint.io/user-guide/configure
module.exports = {
extends: ['stylelint-config-standard'],
rules: {
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://tailwindcss.com/docs/installation#create-your-configuration-file
module.exports = {
purge: {
content: [
Expand Down

0 comments on commit 939886a

Please sign in to comment.