diff --git a/actions/index.js b/actions/index.js index f94bd002..e7332cbc 100644 --- a/actions/index.js +++ b/actions/index.js @@ -5,7 +5,7 @@ import https from "https"; process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0; let BASE_URL; -BASE_URL = process.env.API_ROOT || "http://localhost"; +BASE_URL = process.env.API_ROOT || "http://localhost:3000"; const agent = new https.Agent({ rejectUnauthorized: false, @@ -182,11 +182,12 @@ export const getAppealTypeDetail = (caseReference, appealcasetype) => { //https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/pinswg_planningappeals78s?$filter=pinswg_name eq 'CAS-00015-L7J9H1' export const getLPA = () => { - console.log("got to axios", searchString); console.log("api_root: ", BASE_URL); return axios + .get( - "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/accounts?$select=name", + BASE_URL + "/api/lookups/pinswg_lpa", + //.get("https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/accounts?$select=name", { httpsAgent: new https.Agent({ rejectUnauthorized: false }) } ) .then((res) => res.data) diff --git a/components/cookieBanner.js b/components/cookieBanner.js index 2e554453..1666cb40 100644 --- a/components/cookieBanner.js +++ b/components/cookieBanner.js @@ -2,51 +2,57 @@ import CookieConsent from "react-cookie-consent"; import Link from "next/link"; const CookieBanner = () => { - return ( - -
-