diff --git a/components/pdftemplates/finalComments_pdf.js b/components/pdftemplates/finalComments_pdf.js index 104215d9..8498b4d4 100644 --- a/components/pdftemplates/finalComments_pdf.js +++ b/components/pdftemplates/finalComments_pdf.js @@ -12,8 +12,6 @@ import { createElement } from "react"; import Html from "react-pdf-html"; import { getFormCollectionByID } from "../../components/utils"; -import renderers, { renderBlock } from "react-pdf-html/dist/renderers"; - import transLookupCY from "../../locales/cy/myrepresentations.json"; import transLookupEN from "../../locales/en/myrepresentations.json"; import { JSONPath as jsonpath } from "jsonpath-plus"; diff --git a/components/pdftemplates/other_pdf.js b/components/pdftemplates/other_pdf.js index bd7d04cd..1005e614 100644 --- a/components/pdftemplates/other_pdf.js +++ b/components/pdftemplates/other_pdf.js @@ -12,8 +12,6 @@ import { createElement } from "react"; import Html from "react-pdf-html"; import { getFormCollectionByID } from "../../components/utils"; -import renderers, { renderBlock } from "react-pdf-html/dist/renderers"; - const styles = StyleSheet.create({ page: { backgroundColor: "white", diff --git a/components/pdftemplates/planningappeals78_pdf.js b/components/pdftemplates/planningappeals78_pdf.js index db90de44..f310f239 100644 --- a/components/pdftemplates/planningappeals78_pdf.js +++ b/components/pdftemplates/planningappeals78_pdf.js @@ -13,7 +13,7 @@ import Html from "react-pdf-html"; import { getFormCollectionByID, bytesToSize } from "../utils"; import fs from "fs"; import xpath from "xpath"; -import renderers, { renderBlock } from "react-pdf-html/dist/renderers"; + import _ from "lodash"; import { DOMParser, XMLSerializer } from "@xmldom/xmldom"; import { AppealRow_pdf } from "./appealRow_pdf"; diff --git a/components/pdftemplates/statement_pdf.js b/components/pdftemplates/statement_pdf.js index d4ceff1f..d55ac076 100644 --- a/components/pdftemplates/statement_pdf.js +++ b/components/pdftemplates/statement_pdf.js @@ -11,7 +11,7 @@ import ReactPDF, { import { createElement } from "react"; import Html from "react-pdf-html"; import { getFormCollectionByID } from "../../components/utils"; -import renderers, { renderBlock } from "react-pdf-html/dist/renderers"; + import transLookupCY from "../../locales/cy/myrepresentations.json"; import transLookupEN from "../../locales/en/myrepresentations.json"; import { JSONPath as jsonpath } from "jsonpath-plus"; diff --git a/components/pdftemplates/writtenStatement_pdf.js b/components/pdftemplates/writtenStatement_pdf.js index 24c81d61..0a94c6ca 100644 --- a/components/pdftemplates/writtenStatement_pdf.js +++ b/components/pdftemplates/writtenStatement_pdf.js @@ -12,8 +12,6 @@ import { createElement } from "react"; import Html from "react-pdf-html"; import { getFormCollectionByID } from "../../components/utils"; -import renderers, { renderBlock } from "react-pdf-html/dist/renderers"; - const styles = StyleSheet.create({ page: { backgroundColor: "white", diff --git a/next.config.js b/next.config.js index b180e5c8..a7d1ed26 100644 --- a/next.config.js +++ b/next.config.js @@ -57,7 +57,7 @@ const securityHeaders = [ const buildId = Date.now().toString(); module.exports = { - output: "standalone", + //output: "standalone", env: { BUILD_ID_ENV: buildId, },