Static websites
To serve a static website, we do not need PHP nor AWS Lambda. We can host the website on any static hosting service (like Netlify, Vercel, etc.) or on AWS with CloudFront and S3:
To deploy such a website with Bref and serverless.yml
, we can use Lift (opens in a new tab):
- The
static-website
construct (opens in a new tab) for plain static HTML websites - The
single-page-app
construct (opens in a new tab) for Single-Page Applications like React or VueJS
Lift allows configuring custom domains, root domain to www redirects, and more. Check out the documentation linked above for more details.