Skip to content

Commit

Permalink
CCM-7248: fix minor formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bhansell1 committed Nov 15, 2024
1 parent a305c6c commit cdbe52d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Check notice

Code scanning / SonarCloud

Arguments in long RUN instructions should be sorted Low

Sort these package names alphanumerically. See more on SonarQube Cloud

ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

Expand Down
8 changes: 2 additions & 6 deletions amplify/backend.ts
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion src/components/molecules/ClientLayout/ClientLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => (
Expand Down

0 comments on commit cdbe52d

Please sign in to comment.