-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
242 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@astro-aws/adapter": patch | ||
--- | ||
|
||
Allow override of certain ESBuild options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
AWS_ACCOUNT="$(aws sts get-caller-identity --query Account --output text ${@})" | ||
AWS_REGION="$(aws configure get region ${@})" | ||
|
||
DISTIRBUTION_ID="$(aws cloudformation describe-stacks --stack-name "AstroAWSStack-${AWS_ACCOUNT}-${AWS_REGION}" --query "Stacks[0].Outputs[?OutputKey=='CloudFrontDistributionId'].OutputValue" --output text ${@})" | ||
PATHS="$(jq -r ". | join(\" \")" ../www/dist/invalidationPaths.json)" | ||
|
||
echo "Invalidating CloudFront distribution ${DISTIRBUTION_ID}: ${PATHS}" | ||
|
||
aws cloudfront create-invalidation --distribution-id "${DISTIRBUTION_ID}" --paths ${PATHS} ${@} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as process from "node:process"; | ||
|
||
import { App, Tags } from "aws-cdk-lib"; | ||
|
||
import { AstroAWSStack } from "../lib/stacks/astro-aws-stack.js"; | ||
|
||
const app = new App(); | ||
|
||
const env = { | ||
account: process.env.AWS_ACCOUNT ?? String(process.env.CDK_DEFAULT_ACCOUNT), | ||
region: process.env.AWS_REGION ?? String(process.env.CDK_DEFAULT_REGION), | ||
}; | ||
|
||
const stack = new AstroAWSStack(app, `AstroAWSStack-${env.account}-${env.region}`, { | ||
domainName: "astro-aws.lshay.dev", | ||
env, | ||
}); | ||
|
||
Tags.of(app).add("Project", "AstroAWS"); | ||
Tags.of(stack).add("Project", "AstroAWS"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,6 @@ | |
"prettier": "^2.7.1" | ||
}, | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": "14.x || 16.x" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,8 @@ | |
"license": "MIT", | ||
"workspaces": [ | ||
"packages/*", | ||
"apps/*" | ||
"apps/*", | ||
"scripts" | ||
], | ||
"scripts": { | ||
"lint": "eslint .", | ||
|
@@ -42,6 +43,6 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": "14.x || 16.x" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import type { BuildOptions } from "esbuild"; | ||
|
||
export type Args = { | ||
binaryMediaTypes?: string[]; | ||
esBuildOptions?: Omit<BuildOptions, "bundle" | "entryPoints" | "outdir" | "platform">; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.