See backend/README.
In this sample, you can locally modify and launch the frontend using AWS resources (API Gateway
, Cognito
, etc.) that have been deployed with cdk deploy
.
- Refer to Deploy using CDK for deploying on the AWS environment.
- Copy the
frontend/.env.template
and save it asfrontend/.env.local
. - Fill in the contents of
.env.local
based on the output results ofcdk deploy
(such asBedrockChatStack.AuthUserPoolClientIdXXXXX
). - Execute the following command:
cd frontend && npm ci && npm run dev
Currently, the environment variable VITE_APP_USE_STREAMING
is specified on the frontend side. It's recommended to set it to false
when running the backend locally and true
when operating on AWS.
When streaming is enabled, text is generated in real-time due to the streaming of content generation results.