Skip to content

Commit

Permalink
Merge pull request #18 from eresearchqut/update_readme
Browse files Browse the repository at this point in the history
Update local frontend development instructions
  • Loading branch information
ppettitau authored Oct 9, 2024
2 parents b50229a + 3dee150 commit cfdb576
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,17 @@ cdk deploy FrontEndStack
```

## Local frontend development

1. Copy the dev environment variables into your local `.env.local`
```
cd frontend
export STACK_NAME=dev-transcription
aws cloudformation describe-stacks --stack-name $STACK_NAME --query "Stacks[0].Outputs[?OutputKey=='FrontEndEnvironment'].OutputValue" --output text > .env.local
```
2. Modify `.env.local` to redirect to the local app after login:
```
NEXT_PUBLIC_AUTH_SIGN_IN_REDIRECT=http://localhost:3000/
```
3. Start the app
```
yarn dev
```
```

0 comments on commit cfdb576

Please sign in to comment.