generated from NHSDigital/nhs-notify-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCM-7248: fix minor formatting issues
- Loading branch information
Showing
3 changed files
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters