Skip to content

Commit

Permalink
sst redeployment
Browse files Browse the repository at this point in the history
Redeployed on us-west-1. Deployed new version. Removed extra unused SST example code
  • Loading branch information
magicalpuffin committed Dec 17, 2023
1 parent 0a7be47 commit ba8544b
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 136 deletions.
17 changes: 0 additions & 17 deletions packages/core/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions packages/core/src/event.ts

This file was deleted.

29 changes: 0 additions & 29 deletions packages/core/src/todo.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/sst-env.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/core/tsconfig.json

This file was deleted.

15 changes: 0 additions & 15 deletions packages/functions/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions packages/functions/src/events/todo-created.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/functions/src/lambda.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/functions/src/todo.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/functions/sst-env.d.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/functions/tsconfig.json

This file was deleted.

7 changes: 7 additions & 0 deletions puffinsystems_homepage/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions puffinsystems_homepage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"dev": "sst bind vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
Expand All @@ -27,10 +27,11 @@
"sanitize-html": "^2.11.0",
"svelte": "^4.0.0",
"svelte-check": "^3.4.3",
"svelte-kit-sst": "^2.38.7",
"tailwindcss": "^3.3.2",
"tslib": "^2.5.2",
"typescript": "^5.0.0",
"vite": "^5.0.0"
},
"type": "module"
}
}
6 changes: 2 additions & 4 deletions puffinsystems_homepage/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import adapter from "@sveltejs/adapter-auto";
// import adapter from "@sveltejs/adapter-auto";
// import adapter from "@sveltejs/adapter-static";
import adapter from "svelte-kit-sst";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";

/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter(),
},
};
Expand Down
4 changes: 2 additions & 2 deletions sst.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { SSTConfig } from "sst";
import { SITE } from "./stacks/MyStack";
import { SITE } from "./stacks/MyStack.js";

export default {
config(_input) {
return {
name: "PuffinSystems-Homepage",
region: "us-east-1",
region: "us-west-1",
};
},
stacks(app) {
Expand Down
13 changes: 2 additions & 11 deletions stacks/MyStack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Config, StaticSite } from "sst/constructs";
import { SvelteKitSite } from "sst/constructs";
import { StackContext, Api, EventBus } from "sst/constructs";
import { Certificate } from "aws-cdk-lib/aws-certificatemanager";

Expand All @@ -9,19 +9,10 @@ export function SITE({ stack }: StackContext) {
CERTIFICATE_ARN = process.env.CERTIFICATE_ARN;
}

const site = new StaticSite(stack, "svelte", {
const site = new SvelteKitSite(stack, "Site", {
path: "puffinsystems_homepage",
buildOutput: "build",
buildCommand: "npm run build",
customDomain: {
domainName: "puffinsystems.com",
cdk: {
certificate: Certificate.fromCertificateArn(
stack,
"MyCert",
CERTIFICATE_ARN
),
},
},
});

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "@tsconfig/node16/tsconfig.json",
"exclude": ["packages"],
"compilerOptions": {
"moduleResolution": "Node"
"moduleResolution": "NodeNext"
}
}

0 comments on commit ba8544b

Please sign in to comment.