UNPKG

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