-
Notifications
You must be signed in to change notification settings - Fork 10
/
deployment.js
39 lines (38 loc) · 1.01 KB
/
deployment.js
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
/**
* (c) 2021, Micro:bit Educational Foundation and contributors
*
* SPDX-License-Identifier: MIT
*/
const {
createDeploymentDetailsFromOptions,
} = require("@microbit-foundation/website-deploy-aws-config");
const { s3Config } = createDeploymentDetailsFromOptions({
production: {
bucket: "python-simulator.usermbit.org",
mode: "patch",
},
staging: {
bucket: "python-simulator.usermbit.org",
prefix: "staging",
},
review: {
bucket: "review-python-simulator.usermbit.org",
mode: "branch-prefix",
},
});
module.exports = {
...s3Config,
region: "eu-west-1",
removeNonexistentObjects: true,
enableS3StaticWebsiteHosting: true,
errorDocumentKey: "index.html",
redirects: [],
params: {
"**/*": {
CacheControl: "public, max-age=0, must-revalidate",
},
// We need hashes in the filenames to enable these
// "**/**/!(sw).js": { CacheControl: "public, max-age=31536000, immutable" },
// "**/**.wasm": { CacheControl: "public, max-age=31536000, immutable" },
},
};