Build configuration
Configure the install and build scripts used by Thunder Console’s CI/CD pipelines (CodePipeline + CodeBuild). These settings control how your project is installed, built, and where build artifacts are placed.
Below are the available properties and short descriptions for each pattern’s build properties. The rootDir is common for all patterns used for monorepos.
Single Page Applications
The build configuration for Single Page Application (S3 + CloudFront)
public/
bun install
bun run build
outputDir— Required. Directory containing built assets to publish (e.g.,dist/,build/).runtime— Nodejs runtime version (e.g.,20,18).installcmd— Command to install dependencies (e.g.,bun install,npm ci).buildcmd— Command to build the site (e.g.,bun run build,npm run build).
Serverless Functions (Lambda)
The build configuration for Serverless Functions (Lambda + API Gateway)
Container mode
Thunder supports Docker containers for Lambda functions.
Dockerfile
dockerfile— Path to your DockerfilememorySize— Memory (MB) allocated to your Lambda function
Zip mode
You can use the default Zip mode to deploy Lambda functions.
bun install
bun run build
dist/server
index.handler
installcmd— Command to install dependencies (e.g.,bun install,npm ci).buildcmd— Command to build the site (e.g.,bun run build,npm run build).runtime— Nodejs runtime version (e.g.,20,18).codeDir— The output directory for your server-side codehandler— Lambda handlermemorySize— Memory (MB) allocated to your Lambda function
Web Service (Fargate)
The build configuration for Web Service (Fargate + ALB)
Container
Use a Dockerfile to deploy any web app on AWS using Thunder.
Dockerfile
3000
Nixpacks
Use Nixpacks to generate your Dockerfile.
bun install
bun run build
bun run start
3000