Skip to content

Commit

Permalink
🔧 Add vanilla-js example to SST
Browse files Browse the repository at this point in the history
  • Loading branch information
srod committed Dec 13, 2024
1 parent 814e152 commit 1b16129
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/news-interactions/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions example/vanilla-js/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions example/wallet-ethcc/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
18 changes: 18 additions & 0 deletions infra/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,21 @@ export const newsInteractionWebsite = new sst.aws.StaticSite(
},
}
);

/**
* Vanilla JS demo website
*/
export const vanillaJsWebsite = new sst.aws.StaticSite("VanillaJsDemo", {
path: "example/vanilla-js",
// Set the custom domain
domain: {
name: "vanilla-js.news-paper.xyz",
},
build: {
command: "bun run build",
output: "dist",
},
vite: {
types: "./sst-env.d.ts",
},
});
4 changes: 4 additions & 0 deletions packages/app-essentials/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions packages/backend-elysia/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions packages/dashboard/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions packages/shared/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions packages/wallet/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions sdk/components/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions sdk/core/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions sdk/legacy/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions sdk/react/sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down
4 changes: 4 additions & 0 deletions sst-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ declare module "sst" {
"type": "sst.sst.Secret"
"value": string
}
"VanillaJsDemo": {
"type": "sst.aws.StaticSite"
"url": string
}
"Wallet": {
"type": "sst.aws.StaticSite"
"url": string
Expand Down

0 comments on commit 1b16129

Please sign in to comment.