Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ frontend:
commands:
- nvm install 20
- nvm use 20
- cd frontend/chat-ui
- npm ci
- npm ci --prefix frontend/chat-ui
build:
commands:
- nvm use 20
- cd frontend/chat-ui
- npm run build
- BACKEND_URL=$BACKEND_URL node ../federationStatusCLI.js
- npm run build --prefix frontend/chat-ui
- BACKEND_URL=$BACKEND_URL node frontend/federationStatusCLI.js
artifacts:
baseDirectory: frontend/chat-ui/dist
files:
Expand Down
2 changes: 2 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Both sub-apps rely on environment variables to communicate with backend services

- `NEXT_PUBLIC_BACKEND_URL` – Base URL for backend API requests.
- `NEXT_PUBLIC_API_KEY` – API key used to authorize requests from the Next.js site.
- `NEXT_PUBLIC_APPSYNC_GRAPHQL_ENDPOINT` – AppSync GraphQL endpoint URL.
- `NEXT_PUBLIC_APPSYNC_API_KEY` – API key for AppSync requests.

### Chat UI (`chat-ui/`)

Expand Down
9 changes: 9 additions & 0 deletions frontend/aws-exports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const awsExports = {
aws_project_region: 'us-east-1',
aws_appsync_graphqlEndpoint: process.env.NEXT_PUBLIC_APPSYNC_GRAPHQL_ENDPOINT,
aws_appsync_region: 'us-east-1',
aws_appsync_authenticationType: 'API_KEY',
aws_appsync_apiKey: process.env.NEXT_PUBLIC_APPSYNC_API_KEY
};

export default awsExports;
Loading