Skip to content

Commit

Permalink
Move GFW wordpress API url to constants file
Browse files Browse the repository at this point in the history
  • Loading branch information
aabdaab committed Feb 5, 2020
1 parent 277b8bd commit 318b921
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const WORDPRESS_GFW_API = "https://dev-global-forest-watch-blog.pantheonsite.io/wp-json";
4 changes: 3 additions & 1 deletion frontity.settings.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { WORDPRESS_GFW_API } from './constants.js';

const settings = {
"name": "gfw-blog-redesign",
"state": {
Expand Down Expand Up @@ -45,7 +47,7 @@ const settings = {
"name": "@frontity/wp-source",
"state": {
"source": {
"api": "https://dev-global-forest-watch-blog.pantheonsite.io/wp-json"
"api": WORDPRESS_GFW_API
}
}
},
Expand Down

0 comments on commit 318b921

Please sign in to comment.