This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +13
-2
lines changed Expand file tree Collapse file tree 8 files changed +13
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Learn more about ENV variables at https://github.com/WebDevStudios/nextjs-wordpress-starter/wiki
2
+
1
3
# Tells next.js we're in development mode
2
4
VERCEL_ENV = " development"
3
5
Original file line number Diff line number Diff line change
1
+ // https://eslint.org/docs/user-guide/configuring/
1
2
module . exports = {
2
3
parserOptions : {
3
4
ecmaFeatures : {
Original file line number Diff line number Diff line change 1
- import algoliasearch from 'algoliasearch/lite'
2
1
import getEnvVar from '@/functions/getEnvVar'
2
+ import algoliasearch from 'algoliasearch/lite'
3
3
4
4
// Define env vars.
5
5
export const algoliaIndexName = getEnvVar ( 'ALGOLIA_INDEX_NAME' , true )
@@ -8,6 +8,7 @@ export const algoliaAppId = process.env.NEXT_PUBLIC_ALGOLIA_APPLICATION_ID
8
8
9
9
const algoliaClient = algoliasearch ( algoliaAppId , algoliaSearchKey )
10
10
11
+ // https://www.algolia.com/doc/api-client/getting-started/what-is-the-api-client/javascript/?client=javascript
11
12
export const searchClient = {
12
13
search ( requests ) {
13
14
if ( requests . every ( ( { params} ) => ! params . query ) ) {
Original file line number Diff line number Diff line change 1
- import { useMemo } from 'react'
2
1
import merge from 'deepmerge'
3
2
import isEqual from 'lodash/isEqual'
3
+ import { useMemo } from 'react'
4
4
import { initializeWpApollo } from './wordpress/connector'
5
5
6
6
// Set global state name.
@@ -10,6 +10,9 @@ export const APOLLO_STATE_PROP_NAME = '__APOLLO_STATE__'
10
10
* Init Apollo and merge with initial state.
11
11
*
12
12
* @author WebDevStudios
13
+ *
14
+ * @see https://www.apollographql.com/docs/react/get-started/
15
+ *
13
16
* @param {object } apolloClient Apollo client instance.
14
17
* @param {* } initialState The initial state of things.
15
18
* @return {object } Apollo client instance.
Original file line number Diff line number Diff line change
1
+ // https://nextjs.org/docs/advanced-features/customizing-postcss-config#customizing-plugins
1
2
module . exports = {
2
3
plugins : {
3
4
tailwindcss : { } ,
Original file line number Diff line number Diff line change
1
+ // https://prettier.io/docs/en/configuration.html
1
2
module . exports = {
2
3
tabWidth : 2 ,
3
4
useTabs : false ,
Original file line number Diff line number Diff line change
1
+ // https://stylelint.io/user-guide/configure
1
2
module . exports = {
2
3
extends : [ 'stylelint-config-standard' ] ,
3
4
rules : {
Original file line number Diff line number Diff line change
1
+ // https://tailwindcss.com/docs/installation#create-your-configuration-file
1
2
module . exports = {
2
3
purge : {
3
4
content : [
You can’t perform that action at this time.
0 commit comments