Skip to content

Commit

Permalink
MICRO-150: Update bundler calls to add scope and increase node versio…
Browse files Browse the repository at this point in the history
…n to 16
  • Loading branch information
AdamJHall committed Aug 31, 2023
1 parent 439da22 commit 3af1463
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions packages/basic-auth/lib/basic-auth-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export class BasicAuthFunction extends Construct {
this,
'BasicAuthFunction',
{
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'index.handler',
code: Bundling.bundle({
code: Bundling.bundle(this, {
entry: `${__dirname}/handlers/basic-auth.ts`,
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
sourceMap: true,
projectRoot: `${__dirname}/handlers/`,
depsLockFilePath: `${__dirname}/handlers/package-lock.json`,
Expand Down
6 changes: 3 additions & 3 deletions packages/cloudfront-security-headers/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export class SecurityHeaderFunction extends Construct {
this,
'SecurityHeaderFunction',
{
code: Bundling.bundle({
code: Bundling.bundle(this, {
entry: `${__dirname}/handlers/security-header.ts`,
runtime: Runtime.NODEJS_14_X,
runtime: Runtime.NODEJS_16_X,
sourceMap: true,
projectRoot: `${__dirname}/handlers/`,
depsLockFilePath: `${__dirname}/handlers/package-lock.json`,
define: defineOptions
} as any), // TODO fix typing
runtime: Runtime.NODEJS_14_X,
runtime: Runtime.NODEJS_16_X,
handler: 'index.handler',
}
);
Expand Down
6 changes: 3 additions & 3 deletions packages/geoip-redirect/lib/redirect-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export class RedirectFunction extends Construct {
this,
'RedirectFunction',
{
code: Bundling.bundle({
code: Bundling.bundle(this, {
entry: `${__dirname}/handlers/redirect.ts`,
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
sourceMap: true,
projectRoot: `${__dirname}/handlers/`,
depsLockFilePath: `${__dirname}/handlers/package-lock.json`,
Expand All @@ -37,7 +37,7 @@ export class RedirectFunction extends Construct {
'process.env.DEFAULT_REGION': JSON.stringify(options.defaultRegion),
}
} as any),
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'index.handler',
}
);
Expand Down
6 changes: 3 additions & 3 deletions packages/prerender-proxy/lib/error-response-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export class ErrorResponseFunction extends Construct {
this,
'ErrorResponseFunction',
{
code: Bundling.bundle({
code: Bundling.bundle(this, {
entry: `${__dirname}/handlers/error-response.ts`,
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
sourceMap: true,
projectRoot: `${__dirname}/handlers/`,
depsLockFilePath: `${__dirname}/handlers/package-lock.json`,
Expand All @@ -32,7 +32,7 @@ export class ErrorResponseFunction extends Construct {
},
architecture: Architecture.X86_64
}),
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'index.handler',
}
);
Expand Down
6 changes: 3 additions & 3 deletions packages/prerender-proxy/lib/prerender-check-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ export class PrerenderCheckFunction extends Construct {
this,
'PrerenderCheckFunction',
{
code: Bundling.bundle({
code: Bundling.bundle(this, {
entry: `${__dirname}/handlers/prerender-check.ts`,
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
sourceMap: true,
projectRoot: `${__dirname}/handlers/`,
depsLockFilePath: `${__dirname}/handlers/package-lock.json`,
architecture: Architecture.X86_64
}),
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'index.handler',
}
);
Expand Down
6 changes: 3 additions & 3 deletions packages/prerender-proxy/lib/prerender-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export class PrerenderFunction extends Construct {
this,
'PrerenderFunction',
{
code: Bundling.bundle({
code: Bundling.bundle(this, {
entry: `${__dirname}/handlers/prerender.ts`,
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
sourceMap: true,
projectRoot: `${__dirname}/handlers/`,
depsLockFilePath: `${__dirname}/handlers/package-lock.json`,
Expand All @@ -34,7 +34,7 @@ export class PrerenderFunction extends Construct {
},
architecture: Architecture.X86_64
}),
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'index.handler',
}
);
Expand Down

0 comments on commit 3af1463

Please sign in to comment.