Skip to content

Commit ba23e78

Browse files
authored
Merge pull request #261 from NHSDigital/feature/CCM-7465_remove-amplify
CCM-7465 remove amplify PT.3
2 parents cd180a5 + 863a1cc commit ba23e78

File tree

86 files changed

+683
-1448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+683
-1448
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ terraform/*_output.json
6767
group_target-env.tfvars
6868
*tf_outputs.json
6969

70-
\.amplify/
7170
amplify_outputs.json
72-
frontend/amplify/functions/send-email/email-template.json
7371

7472
# playwright
7573
test-results/

README.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,38 +50,28 @@
5050
export NOTIFY_DOMAIN_NAME=<ses_verified_domain>
5151
```
5252

53-
3. To run an Amplify sandbox. To do this, authenticate with an AWS account that has Amplify enabled, then run:
54-
55-
```shell
56-
npx ampx sandbox --profile <the name of the AWS config profile for the account you are authenticated with>
57-
```
58-
59-
4. To create a Terraform backend sandbox, run:
53+
3. To create a Terraform backend sandbox, run:
6054

6155
```shell
6256
npm run create-backend-sandbox <environment-name>
6357
```
6458

65-
5. Then in a separate terminal, run the app locally:
59+
4. Then in a separate terminal, run the app locally:
6660

6761
```shell
6862
npm run dev
6963
```
7064

71-
6. Open your browser and go to `localhost:3000` to view the app.
65+
5. Open your browser and go to `localhost:3000` to view the app.
7266

73-
7. To destroy an Amplify sandbox, run:
74-
75-
```shell
76-
npm run destroy-sandbox -- --profile <the name of the AWS config profile for the account you are authenticated with>
77-
```
78-
79-
8. To destroy a Terraform backend sandbox, run:
67+
6. To destroy a Terraform backend sandbox, run:
8068

8169
```shell
8270
npm run destroy-backend-sandbox <environment-name>
8371
```
8472

73+
7. (Optional) Create a `.env` file at `frontend/.env` and add `INCLUDE_AUTH_PAGES=true` to include the local auth pages when doing a production Next build
74+
8575
### Other commands
8676

8777
- Unit test `npm run test:unit`

frontend/amplify/.eslintrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

frontend/amplify/__tests__/functions/send-email/__snapshots__/email-template.test.ts.snap

Lines changed: 0 additions & 233 deletions
This file was deleted.

frontend/amplify/__tests__/functions/send-email/email-template.test.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)