Releases: dangreaves/gatsby-adapter-aws
Releases · dangreaves/gatsby-adapter-aws
v1.1.0
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.
v1.0.1
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
v0.6.1
- fix: omit attributes from cache behavior and distribution options e377c41
v0.6.0
- 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
- Add disableSearchIndexing to distribution options 5c825ad
v0.4.3
- 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.1
v0.4.0
- 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