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

Commit 939886a

Browse files
committed
add link to documentation
1 parent 6937193 commit 939886a

File tree

8 files changed

+13
-2
lines changed

8 files changed

+13
-2
lines changed

.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Learn more about ENV variables at https://github.com/WebDevStudios/nextjs-wordpress-starter/wiki
2+
13
# Tells next.js we're in development mode
24
VERCEL_ENV="development"
35

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://eslint.org/docs/user-guide/configuring/
12
module.exports = {
23
parserOptions: {
34
ecmaFeatures: {

api/algolia/connector.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import algoliasearch from 'algoliasearch/lite'
21
import getEnvVar from '@/functions/getEnvVar'
2+
import algoliasearch from 'algoliasearch/lite'
33

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

99
const algoliaClient = algoliasearch(algoliaAppId, algoliaSearchKey)
1010

11+
// https://www.algolia.com/doc/api-client/getting-started/what-is-the-api-client/javascript/?client=javascript
1112
export const searchClient = {
1213
search(requests) {
1314
if (requests.every(({params}) => !params.query)) {

api/apolloConfig.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {useMemo} from 'react'
21
import merge from 'deepmerge'
32
import isEqual from 'lodash/isEqual'
3+
import {useMemo} from 'react'
44
import {initializeWpApollo} from './wordpress/connector'
55

66
// Set global state name.
@@ -10,6 +10,9 @@ export const APOLLO_STATE_PROP_NAME = '__APOLLO_STATE__'
1010
* Init Apollo and merge with initial state.
1111
*
1212
* @author WebDevStudios
13+
*
14+
* @see https://www.apollographql.com/docs/react/get-started/
15+
*
1316
* @param {object} apolloClient Apollo client instance.
1417
* @param {*} initialState The initial state of things.
1518
* @return {object} Apollo client instance.

postcss.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://nextjs.org/docs/advanced-features/customizing-postcss-config#customizing-plugins
12
module.exports = {
23
plugins: {
34
tailwindcss: {},

prettier.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://prettier.io/docs/en/configuration.html
12
module.exports = {
23
tabWidth: 2,
34
useTabs: false,

stylelint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://stylelint.io/user-guide/configure
12
module.exports = {
23
extends: ['stylelint-config-standard'],
34
rules: {

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://tailwindcss.com/docs/installation#create-your-configuration-file
12
module.exports = {
23
purge: {
34
content: [

0 commit comments

Comments
 (0)