1.7.0
This release introduces a brand new Server-Side Website construct 🎉
The server-side-website construct deploys websites where the HTML is rendered "server-side", i.e. on AWS Lambda.
This is usually done with backend frameworks like Laravel/Symfony (PHP), Ruby on Rails, Django/Flask (Python), Express (Node), etc.
To build a SPA or static website, use the Static Website construct instead.
Quick preview:
service: my-app
provider:
name: aws
functions:
home:
handler: home.handler
events:
- httpApi: 'GET /'
# ...
constructs:
website:
type: server-side-website
assets:
'/css/*': public/css
'/js/*': public/js
plugins:
- serverless-liftOn serverless deploy, the example above will set up a website that serves both:
https://<domain>/*-> the website through API Gateway + Lambdahttps://<domain>/css/*andhttps://<domain>/js/*-> assets through S3
👉️ Learn more in the Server-Side Website documentation