diff --git a/Dockerfile b/Dockerfile index c04eecf..c6cac74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ ### Base -FROM node:20-alpine as base +FROM node:20-alpine AS base # Install necessary packages for Puppeteer # Installs latest Chromium (100) package. RUN apk add --no-cache \ - udev \ + chromium \ ttf-freefont \ - chromium + udev ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser diff --git a/amplify/backend.ts b/amplify/backend.ts index b3a4e28..c4ffd96 100644 --- a/amplify/backend.ts +++ b/amplify/backend.ts @@ -1,13 +1,9 @@ import { defineBackend } from '@aws-amplify/backend'; import { remoteAuthConfig, sandboxAuthConfig } from './auth/resource'; -let backend; - if (process.env.USE_LOCAL_AUTH === 'true') { - backend = defineBackend(sandboxAuthConfig); + defineBackend(sandboxAuthConfig); } else { - backend = defineBackend({}); + const backend = defineBackend({}); backend.addOutput(remoteAuthConfig); } - -export default backend; diff --git a/src/components/molecules/ClientLayout/ClientLayout.tsx b/src/components/molecules/ClientLayout/ClientLayout.tsx index bf4ee64..43e770c 100644 --- a/src/components/molecules/ClientLayout/ClientLayout.tsx +++ b/src/components/molecules/ClientLayout/ClientLayout.tsx @@ -11,7 +11,7 @@ import { BASE_PATH } from '@/src/utils/constants'; import { NHSNotifyHeader } from '../Header/Header'; import { NHSNotifyFooter } from '../Footer/Footer'; -/* eslint-disable @typescript-eslint/no-require-imports, unicorn/prefer-module */ +// eslint-disable-next-line @typescript-eslint/no-require-imports, unicorn/prefer-module, import/no-unresolved Amplify.configure(require('@/amplify_outputs.json'), { ssr: true }); export const ClientLayout = ({ children }: { children: React.ReactNode }) => (