1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.DEFAULT_CONFIG_FILENAME = 'fab.config.json5';
|
4 | exports.DEFAULT_MIME_TYPE = 'text/html; charset=utf-8';
|
5 | exports.NO_RESPONSE_STATUS_CODE = 444;
|
6 | exports.IMMUTABLE_HEADERS = {
|
7 | 'cache-control': 'public, max-age=31536000, immutable',
|
8 | };
|
9 | exports.NON_IMMUTABLE_HEADERS = { 'cache-control': 'no-cache' };
|
10 | exports.REGEXP_VALUE_PATTERN = /^\/.*\/([gimy]*)$/;
|
11 | exports.ENV_VAR_SYNTAX = /^@([A-Z0-9_]+$)?/;
|
12 | const CF_WORKERS_CONFIG = {
|
13 | account_id: '',
|
14 | zone_id: '',
|
15 | route: '',
|
16 | api_token: '',
|
17 | workers_dev: false,
|
18 | script_name: '',
|
19 | };
|
20 | const AWS_LAMBDA_CONFIG = {
|
21 | access_key: '',
|
22 | secret_key: '',
|
23 | region: '',
|
24 | cf_distribution_id: '',
|
25 | lambda_arn: '',
|
26 | };
|
27 | const AWS_S3_CONFIG = {
|
28 | access_key: '',
|
29 | secret_key: '',
|
30 | region: '',
|
31 | bucket_name: '',
|
32 | endpoint: '',
|
33 | };
|
34 | exports.HOSTING_PROVIDERS = {
|
35 | 'cf-workers': {
|
36 | package_name: '@fab/deployer-cf-workers',
|
37 | capabilities: {
|
38 | server: true,
|
39 | assets: true,
|
40 | },
|
41 | config: CF_WORKERS_CONFIG,
|
42 | extension: 'js',
|
43 | },
|
44 | 'aws-lambda-edge': {
|
45 | package_name: '@fab/deployer-aws-lambda',
|
46 | capabilities: {
|
47 | server: true,
|
48 | assets: false,
|
49 | },
|
50 | config: AWS_LAMBDA_CONFIG,
|
51 | extension: 'zip',
|
52 | },
|
53 | 'aws-s3': {
|
54 | package_name: '@fab/deployer-aws-s3',
|
55 | capabilities: {
|
56 | server: false,
|
57 | assets: true,
|
58 | },
|
59 | config: AWS_S3_CONFIG,
|
60 | extension: 'zip',
|
61 | },
|
62 | };
|
63 |
|
\ | No newline at end of file |