From 318b9210f170e7afc8ddbe24ed2fe5a89dc6138e Mon Sep 17 00:00:00 2001 From: Marta Gajowczyk Date: Wed, 5 Feb 2020 16:23:03 +0000 Subject: [PATCH] Move GFW wordpress API url to constants file --- constants.js | 1 + frontity.settings.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 constants.js diff --git a/constants.js b/constants.js new file mode 100644 index 00000000..efc58b36 --- /dev/null +++ b/constants.js @@ -0,0 +1 @@ +export const WORDPRESS_GFW_API = "https://dev-global-forest-watch-blog.pantheonsite.io/wp-json"; \ No newline at end of file diff --git a/frontity.settings.js b/frontity.settings.js index a3fa0211..1cf63ef7 100644 --- a/frontity.settings.js +++ b/frontity.settings.js @@ -1,3 +1,5 @@ +import { WORDPRESS_GFW_API } from './constants.js'; + const settings = { "name": "gfw-blog-redesign", "state": { @@ -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 } } },