Repository navigation
Expand file tree
/
Copy pathserverless.yml
More file actions
62 lines (56 loc) · 1.56 KB
/
Copy pathserverless.yml
File metadata and controls
62 lines (56 loc) · 1.56 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
service: abstractplay-docs
org: abstractplay
frameworkVersion: "4"
plugins:
- serverless-finch
params:
dev:
profile: AbstractPlayDev
bucket: docs.dev.abstractplay.com
prod:
profile: AbstractPlayProd
bucket: docs.abstractplay.com
provider:
name: aws
runtime: nodejs18.x
stage: ${opt:stage, 'dev'}
region: us-east-1
profile: ${param:profile}
stackTags:
ap:service: ${self:service}
ap:stage: ${self:provider.stage}
tags:
ap:service: ${self:service}
ap:stage: ${self:provider.stage}
custom:
# AWS Billing → Cost allocation tags (activate ap:service and ap:stage once per account).
apCostAllocationTags:
ap:service: ${self:service}
ap:stage: ${self:provider.stage}
client:
bucketName: ${param:bucket}
distributionFolder: ./dist
manageResources: false
indexDocument: index.html
objectHeaders:
"assets/**":
- name: Cache-Control
value: "public, max-age=31536000, immutable"
"assets/js/APRender.min.js":
- name: Cache-Control
value: "public, max-age=3600"
"renderer/samples/**":
- name: Cache-Control
value: "public, max-age=31536000, immutable"
"index.html":
- name: Cache-Control
value: "no-cache, no-store, must-revalidate"
"**/*.html":
- name: Cache-Control
value: "no-cache, no-store, must-revalidate"
"robots.txt":
- name: Cache-Control
value: "public, max-age=86400"
"sitemap.xml":
- name: Cache-Control
value: "public, max-age=3600"