Skip to content

Commit

Permalink
amend env file
Browse files Browse the repository at this point in the history
  • Loading branch information
ragudesign committed Jun 16, 2022
1 parent 41e684f commit 5a9bca0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_WORDPRESS_GRAPHQL_URL=
WORDPRESS_GRAPHQL_URL=
2 changes: 1 addition & 1 deletion lib/fetcher.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const WP_API = process.env.NEXT_PUBLIC_WORDPRESS_GRAPHQL_URL
const WP_API = process.env.WORDPRESS_GRAPHQL_URL

async function fetcher(query, { variables } = {}) {

Expand Down
2 changes: 1 addition & 1 deletion scripts/build-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fetch = require('node-fetch')
const fs = require('fs')
require('dotenv').config()

const WP_API = process.env.NEXT_PUBLIC_WORDPRESS_GRAPHQL_URL
const WP_API = process.env.WORDPRESS_GRAPHQL_URL

async function fetcher(query) {

Expand Down

0 comments on commit 5a9bca0

Please sign in to comment.