Skip to content

Commit

Permalink
Fix docs based on types
Browse files Browse the repository at this point in the history
  • Loading branch information
etc-tiago authored Oct 8, 2024
1 parent f60e696 commit 1ba333a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions apps/docs/src/content/docs/guides/02-query-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ export class HelloCdkStack extends Stack {

new AstroAWS(this, "AstroAWS", {
cdk: {
// This configures all subpaths of /api.
apiBehavior: {
cachePolicy,
},
// This configures everything excluding subpaths of /api.
cloudfrontDistribution: {
apiBehavior: {
cachePolicy: cachePolicy
},
defaultBehavior: {
cachePolicy,
cachePolicy
},
},
},
Expand Down
10 changes: 4 additions & 6 deletions apps/docs/src/content/docs/guides/03-cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ export class HelloCdkStack extends Stack {

new AstroAWS(this, "AstroAWS", {
cdk: {
// This configures all subpaths of /api.
apiBehavior: {
cachePolicy,
},
// This configures everything excluding subpaths of /api.
cloudfrontDistribution: {
apiBehavior: {
cachePolicy: cachePolicy
},
defaultBehavior: {
cachePolicy,
cachePolicy
},
},
},
Expand Down

0 comments on commit 1ba333a

Please sign in to comment.