The following guide will help you deploy your customized screens to production and create a continuous integration and continuous delivery pipeline.

Set up your project

Prepare all your Screens to be uploaded and use the following file structure for your ACUL project:
undefined

Create a new Vite configuration

Add the following to a new file named vite.config.ts:

Set up build scripts

Create scripts/build.ts to run your Vite build:

Build your AWS infrastructure

Create an S3 bucket and CloudFront distribution:

Configure CORS for Auth0

Create a deployment script

Create scripts/deploy.ts for AWS deployment:

Set up GitHub Actions workflow

Create .github/workflows/deploy.yml:
Finally, add these secrets to your GitHub repository:
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • CLOUDFRONT_ID
  • CLOUDFRONT_DOMAIN
  • AUTH0_DEPLOY_TOKEN