@@ -50,7 +50,6 @@
|
|||||||
"next-connect": "^0.12.2",
|
"next-connect": "^0.12.2",
|
||||||
"next-redux-wrapper": "^7.0.5",
|
"next-redux-wrapper": "^7.0.5",
|
||||||
"next-translate": "^1.2.0",
|
"next-translate": "^1.2.0",
|
||||||
"nextjs-basic-auth-middleware": "^0.2.1",
|
|
||||||
"nodemailer": "^6.7.8",
|
"nodemailer": "^6.7.8",
|
||||||
"nookies": "^2.5.2",
|
"nookies": "^2.5.2",
|
||||||
"notifications-node-client": "^5.1.1",
|
"notifications-node-client": "^5.1.1",
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import Document, { Html, Head, Main, NextScript } from "next/document";
|
import Document, { Html, Head, Main, NextScript } from "next/document";
|
||||||
import SkipLink from "../components/skiplink";
|
import SkipLink from "../components/skiplink";
|
||||||
import { Tracking, TrackingNoScript } from "../components/tracking";
|
import { Tracking, TrackingNoScript } from "../components/tracking";
|
||||||
import basicAuthMiddleware from "nextjs-basic-auth-middleware";
|
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
|
|
||||||
class MyDocument extends Document {
|
class MyDocument extends Document {
|
||||||
@@ -10,19 +9,6 @@ class MyDocument extends Document {
|
|||||||
|
|
||||||
let useGATracking = false;
|
let useGATracking = false;
|
||||||
|
|
||||||
//remove this block when not need after softlaunch
|
|
||||||
// let hasBasicAuth =
|
|
||||||
// typeof process.env.BASIC_AUTH_CREDENTIALS != "undefined";
|
|
||||||
|
|
||||||
// console.log("hasbasicAuth:", hasBasicAuth);
|
|
||||||
|
|
||||||
// if (ctx.req && ctx.res) {
|
|
||||||
// hasBasicAuth &&
|
|
||||||
// (await basicAuthMiddleware(ctx.req, ctx.res, {
|
|
||||||
// users: process.env.BASIC_AUTH_CREDENTIALS,
|
|
||||||
// }));
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (ctx.req && ctx.req.headers.cookie) {
|
if (ctx.req && ctx.req.headers.cookie) {
|
||||||
typeof ctx.req.cookies.CookiePolicy != "undefined"
|
typeof ctx.req.cookies.CookiePolicy != "undefined"
|
||||||
? JSON.parse(ctx.req.cookies.CookiePolicy).usage == "accepted"
|
? JSON.parse(ctx.req.cookies.CookiePolicy).usage == "accepted"
|
||||||
|
|||||||
@@ -4,12 +4,11 @@ const ApiResponse = (req, res) => {
|
|||||||
"value": [
|
"value": [
|
||||||
{
|
{
|
||||||
"notice_en":
|
"notice_en":
|
||||||
"We have updated the Planning Casework service. If you are unable to view your recent activity please refresh your browser.",
|
"We have updated the Planning Casework service. If you are unable to view your recent activity, press Ctrl, Shift and R to refresh your browser (or Cmd and R if you are using a Mac).",
|
||||||
"notice_cy":
|
"notice_cy":
|
||||||
"Rydym wedi diweddaru'r gwasanaeth Gwaith Achos Cynllunio. Os na allwch weld eich gweithgarwch diweddar adnewyddwch eich porwr.",
|
"Rydym wedi diweddaru'r gwasanaeth Gwaith Achos Cynllunio. Os nad ydych yn gallu gweld eich gweithgarwch diweddar, pwyswch Ctrl, Shift ac R i adnewyddu eich porwr (neu Cmd ac R os ydych yn defnyddio Mac).",
|
||||||
|
|
||||||
"dateFrom": "20/09/2022",
|
"dateFrom": "20/09/2022",
|
||||||
"dateTo": "20/09/2023",
|
"dateTo": "31/12/2022",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user