-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserverless.yml
44 lines (40 loc) · 1.04 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
service: app
provider:
name: aws
region: us-east-1
runtime: provided.al2
environment:
APP_ENV: prod
plugins:
- ./vendor/bref/bref
- serverless-lift
functions:
api:
handler: public/index.php
description: ''
timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds)
layers:
- ${bref:layer.php-82-fpm}
events:
- httpApi: '*'
constructs:
website:
type: server-side-website
assets:
'/build/*': public/build
'/favicon.ico': public/favicon.ico
'/apple-touch-icon.png': public/apple-touch-icon.png
'/favicon-32x32.png': public/favicon-32x32.png
'/favicon-16x16.png': public/favicon-16x16.png
'/site.webmanifest': public/site.webmanifest
'/safari-pinned-tab.svg': public/safari-pinned-tab.svg
# Exclude files from deployment
package:
patterns:
- '!.idea/**'
- '!node_modules/**'
- '!tests/**'
- '!var/**'
- 'var/data.db'
- '!docs/**'
- '!.github/**'