This project is configured for continuous deployment using AWS Amplify.
- AWS Account with access to AWS Amplify.
- Repository Access: You must have admin access to the GitHub repository to connect it to Amplify.
- Log in to the AWS Amplify Console.
- Click "New app" -> "Host web app".
- Select GitHub (or your Git provider) and authorize AWS Amplify to access your account.
- Select the repository (
chacal-studio) and the branch (main) to deploy. - Build settings: Amplify should automatically detect the
amplify.ymlfile in the project root (once added). Ensure it is selected. - Environment Variables: Add the required environment variables (see Environment Variables below).
- Click "Save and deploy".
- Branch:
main - Trigger: Every push to the
mainbranch triggers a production deployment. - URL: Your production URL (e.g.,
https://main.d...amplifyapp.comor your custom domain).
- Branch:
develop - Trigger: Pushes to
developtrigger a deployment to the integration environment. - Pull Requests: (Optional) Enable "Web Previews" in Amplify settings to automatically build and deploy Pull Requests to temporary URLs.
The project uses an amplify.yml file in the root directory to define the build process. This ensures that the build environment matches our local standards (pnpm, linting, build).
The following environment variables are REQUIRED for the application to build and run correctly.
- Go to App settings -> Environment variables in the Amplify Console.
- Click Manage variables.
- Add the following key-value pairs:
| Variable Key | Description |
|---|---|
RESEND_API_KEY |
API key for Resend email service. |
TURNSTILE_SITE_KEY |
Public Site Key for Cloudflare Turnstile. |
TURNSTILE_SECRET_KEY |
Secret Key for Cloudflare Turnstile server-side validation. |
Note: Never commit actual secrets to the repository. Use .env.example as a reference for local development, and copy it to .env.local with your real keys.