Skip to content

Releases: dangreaves/gatsby-adapter-aws

v1.1.0

29 Feb 01:42
6f99266
Compare
Choose a tag to compare

You can now access the underlying Gatsby Function resources after instantiating the GatsbySite construct. See the Accessing Gatsby Function resources section in the readme for an example.

  • docs: add section on accessing gatsby function resources 8178d32
  • feat: export functions from gatsby site construct 2aa2e74

v1.0.1...v1.1.0

v1.0.1

28 Feb 21:16
b3e3d99
Compare
Choose a tag to compare

Fixes an issue where the functionOptions attribute from the gatsbyFunctionOptions callback was not being passed to the Lambda Function construct. This fix allows arbitrary Lambda attributes to be passed to the construct, without needing to add every possible variation into the GatsbySite construct.

For example, you can now provide environment variables like this.

new GatsbySite(this, "GatsbySite", {
  gatsbyDir: "./site",
  distribution: { cachePolicy },
  gatsbyFunctionOptions: (fn) => {
    return {
      target: "LAMBDA",
      functionOptions: {
        environment: {
          foo: "bar",
        },
      },
    };
  },
});

And Lambda layers like this.

const secretsLayer = lambda.LayerVersion.fromLayerVersionArn(
  this,
  "SecretsLayer",
  "arn:aws:lambda:ap-southeast-2:665172237481:layer:AWS-Parameters-and-Secrets-Lambda-Extension:11",
)

new GatsbySite(this, "GatsbySite", {
  gatsbyDir: "./site",
  distribution: { cachePolicy },
  gatsbyFunctionOptions: (fn) => {
    return {
      target: "LAMBDA",
      functionOptions: {
        environment: {
          layers: [secretsLayer],
        },
      },
    };
  },
});
  • docs: add gssumesh to contributors ed81263
  • fix: pass function options into lambda construct ae1e573
  • chore: remove function options from cdk example ec5b77b
  • feat: support for environment variables and layers within gatsby functions (#37) ec467f7
  • docs: add contributors section a500517
  • build: upgrade typescript-eslint and flat config 4965019

v1.0.0...v1.0.1

v1.0.0

07 Feb 21:48
eb4dab4
Compare
Choose a tag to compare

This package has now reached maturity for production use.

Animation of cat launching into space

v0.6.1...v1.0.0

v0.6.1

31 Jan 02:16
7db1714
Compare
Choose a tag to compare
v0.6.1 Pre-release
Pre-release
  • fix: omit attributes from cache behavior and distribution options e377c41

v0.6.0...v0.6.1

v0.6.0

31 Jan 00:52
ce03857
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release
  • docs: remove legacy disableCache option from readme 6b41a57
  • docs: update examples to use subpath exports without extensions b60b0e3
  • feat: support externally managed response header policies 0160dca
  • build: upgrade dependencies 8f82a28
  • build: upgrade husky c1a8160
  • build: remove extensions from subpath exports dec6d49
  • feat: require cache policy to be externally constructed 40b30e8
  • Bump aws-cdk from 2.122.0 to 2.124.0 (#16) 3a21ee0
  • Bump esbuild from 0.19.12 to 0.20.0 (#15) 9e95826
  • Bump gatsby from 5.13.2 to 5.13.3 (#13) 6ed4801
  • Bump aws-cdk-lib from 2.122.0 to 2.124.0 (#12) 2f50956
  • Bump @types/node from 20.11.5 to 20.11.10 (#14) 1085a45

v0.5.0...v0.6.0

v0.5.0

24 Jan 23:33
2bf5457
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release
  • Add disableSearchIndexing to distribution options 5c825ad

v0.4.3...v0.5.0

v0.4.3

24 Jan 04:10
13c68cf
Compare
Choose a tag to compare
v0.4.3 Pre-release
Pre-release
  • Upgrade dependencies 76cc6a9
  • Remove gatsby from peer dependencies 8958f8f
  • Bump @types/node from 20.10.8 to 20.11.5 (#11) e3854c8
  • Bump @typescript-eslint/parser from 6.18.1 to 6.19.0 (#10) 8c14f6f
  • Bump vitest from 1.2.0 to 1.2.1 (#9) e99ae22
  • Bump prettier from 3.1.1 to 3.2.4 (#8) 886af58
  • Bump aws-cdk from 2.121.1 to 2.122.0 (#7) ccd54f5
  • Fix docs contents hierarchy ef7ca86
  • Update readme description to be specific about AWS CDK 5d05206
  • Add distribution options to docs 5bd25a0
  • Add asset prefix to docs 96334fb
  • Add gatsby functions, ssr and cache behavior options to docs 1c7c0d8

v0.4.2...v0.4.3

v0.4.2

21 Jan 23:53
42026e3
Compare
Choose a tag to compare
v0.4.2 Pre-release
Pre-release
  • Avoid constructing ECS cluster inside GatsbySite construct 98d0927
  • Refactor executors to gatsby functions 20b2699
  • Use Gatsby Function name instead of id when creating cache behaviors cc6ac96

v0.4.1...v0.4.2

v0.4.1

17 Jan 02:37
Compare
Choose a tag to compare
v0.4.1 Pre-release
Pre-release
  • Omit distribution from hosted zone prop 6ea1f99
  • Export GatsbyDistributionOptions type 6bcc1b4

v0.4.0...v0.4.1

v0.4.0

17 Jan 00:33
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release
  • Set protocolPolicy to HTTP_ONLY for fargate backed functions eb9b665
  • Add support for origin custom headers 3a542ec
  • Add support for delegated hosted zones on distributions a3c20b7
  • Add breaking changes warning to readme 750b843
  • Refactor preview distribution to additional distributions 831ed86
  • Add cache control docs 95550b4

v0.3.0...v0.4.0