Skip to main content
Vercel For Frontend requires several environment variables to connect to AWS S3 for storage. These variables must be set before starting the services.

Required Variables

The platform requires the following environment variables to function:

AWS Configuration

AWS_ACCESS_KEY_ID
string
required
Your AWS IAM access key ID with S3 permissionsUsed in:
  • upload-service/src/utils/uploadFiles.ts:5
  • deploy-service/src/utils/donwloadS3Folde.ts:6
AWS_SECRET_ACCESS_KEY
string
required
Your AWS IAM secret access key corresponding to the access key IDUsed in:
  • upload-service/src/utils/uploadFiles.ts:6
  • deploy-service/src/utils/donwloadS3Folde.ts:7
AWS_REGION
string
required
The AWS region where your S3 bucket is located (e.g., us-east-1, us-west-2)Used in:
  • upload-service/src/utils/uploadFiles.ts:7
  • deploy-service/src/utils/donwloadS3Folde.ts:8

S3 Bucket Configuration

The platform uses a hardcoded S3 bucket name: vercel-frontend This bucket name is referenced in:
  • upload-service/src/utils/uploadFiles.ts:20
  • deploy-service/src/utils/donwloadS3Folde.ts:16
  • deploy-service/src/utils/donwloadS3Folde.ts:44
  • deploy-service/src/utils/donwloadS3Folde.ts:76
Make sure your S3 bucket is named vercel-frontend or update the bucket name in the source code to match your bucket.

Setting Environment Variables

Create a .env file in the root of each service directory:
# .env file
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_REGION=us-east-1
Both upload-service and deploy-service need their own .env files with these variables.

Verifying Configuration

After setting environment variables, verify they’re accessible:
echo $AWS_ACCESS_KEY_ID
echo $AWS_REGION
Never commit .env files or expose your AWS credentials in version control. Add .env to your .gitignore file.

Next Steps

AWS Setup

Configure your AWS S3 bucket and IAM credentials

Redis Setup

Install and configure Redis for queue management

Build docs developers (and LLMs) love