wirejs-resources 0.1.184 → 0.1.186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +59 -0
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -3,6 +3,41 @@ export type RedirectRule = {
|
|
|
3
3
|
to: string;
|
|
4
4
|
mode?: 'temporary' | 'permanent';
|
|
5
5
|
};
|
|
6
|
+
export type DeploymentDnsRecordType = 'A' | 'AAAA' | 'CAA' | 'CNAME' | 'MX' | 'NS' | 'PTR' | 'SPF' | 'SRV' | 'TXT';
|
|
7
|
+
export type DeploymentDnsRecord = {
|
|
8
|
+
/**
|
|
9
|
+
* Record name.
|
|
10
|
+
*
|
|
11
|
+
* Accepts either:
|
|
12
|
+
* - FQDN (for example `www.example.com`)
|
|
13
|
+
* - Relative host label (for example `www`, `_dmarc`, `@`) when `zoneDomain` is provided
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Route53 record type.
|
|
18
|
+
*/
|
|
19
|
+
type: DeploymentDnsRecordType;
|
|
20
|
+
/**
|
|
21
|
+
* Raw Route53 resource record values.
|
|
22
|
+
*
|
|
23
|
+
* Examples:
|
|
24
|
+
* - TXT: ['"v=spf1 include:_spf.google.com ~all"']
|
|
25
|
+
* - MX: ['10 mail.example.com.']
|
|
26
|
+
* - CNAME: ['ghs.googlehosted.com.']
|
|
27
|
+
*/
|
|
28
|
+
values: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Optional TTL for the record set.
|
|
31
|
+
* Defaults to 300 seconds.
|
|
32
|
+
*/
|
|
33
|
+
ttlSeconds?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Optional hosted-zone domain to create this record in.
|
|
36
|
+
*
|
|
37
|
+
* Required when `name` is not an FQDN.
|
|
38
|
+
*/
|
|
39
|
+
zoneDomain?: string;
|
|
40
|
+
};
|
|
6
41
|
export type DeploymentConfig = {
|
|
7
42
|
runtimeDesiredMemoryMB?: number;
|
|
8
43
|
runtimeTimeoutSeconds?: number;
|
|
@@ -10,6 +45,16 @@ export type DeploymentConfig = {
|
|
|
10
45
|
bundleNodeModules?: string[];
|
|
11
46
|
bundleFormat?: 'cjs' | 'esm';
|
|
12
47
|
bundleMinify?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Additional modules to keep external in SSG bundles.
|
|
50
|
+
*
|
|
51
|
+
* This is mainly useful when an SSG entrypoint contains dynamic imports that are
|
|
52
|
+
* only expected to execute during server-side generation and must remain unresolved
|
|
53
|
+
* in the browser hydration bundle.
|
|
54
|
+
*
|
|
55
|
+
* Node builtins are already externalized automatically for the browser SSG build.
|
|
56
|
+
*/
|
|
57
|
+
ssgExternalModules?: string[];
|
|
13
58
|
/**
|
|
14
59
|
* Function URL auth mode for the API Lambda.
|
|
15
60
|
*
|
|
@@ -69,4 +114,18 @@ export type DeploymentConfig = {
|
|
|
69
114
|
* - All `from` hosts are automatically included in domain aliases and certificates.
|
|
70
115
|
*/
|
|
71
116
|
redirects?: RedirectRule[];
|
|
117
|
+
/**
|
|
118
|
+
* Optional arbitrary Route53 DNS records.
|
|
119
|
+
*
|
|
120
|
+
* Use this when migrating existing DNS into CDK-managed infrastructure,
|
|
121
|
+
* including TXT/MX/CAA/CNAME and additional A/AAAA records.
|
|
122
|
+
*
|
|
123
|
+
* Notes:
|
|
124
|
+
* - Record values are passed directly to Route53 resource records.
|
|
125
|
+
* - Hosted zones are looked up automatically for FQDN names.
|
|
126
|
+
* - For relative names (for example `@`, `www`, `_acme-challenge`),
|
|
127
|
+
* provide `zoneDomain`.
|
|
128
|
+
* - Supports `{branch}` token substitution in `name`, `zoneDomain`, and `values`.
|
|
129
|
+
*/
|
|
130
|
+
dnsRecords?: DeploymentDnsRecord[];
|
|
72
131
|
};
|