Skip to content

Commit f91e2c1

Browse files
Merge pull request #119 from yehezkielgunawan/poc-sst-dev
Poc sst dev
2 parents 41be0d3 + bc105fa commit f91e2c1

File tree

7 files changed

+784
-7
lines changed

7 files changed

+784
-7
lines changed

.github/workflows/deploy.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy to SST
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Configure AWS credentials
13+
uses: aws-actions/configure-aws-credentials@v4
14+
with:
15+
aws-access-key-id: ${{ secrets.ACCESS_KEY_ID }}
16+
aws-secret-access-key: ${{ secrets.SECRET_ACCESS_KEY }}
17+
aws-region: ${{ secrets.AWS_REGION }}
18+
- uses: pnpm/action-setup@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: "pnpm"
23+
- run: pnpm install
24+
- run: pnpm build
25+
- run: pnpm sst:deploy

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ yarn-error.log*
3636

3737
# typescript
3838
*.tsbuildinfo
39+
40+
# sst
41+
.sst
42+
43+
# open-next
44+
.open-next

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
"private": true,
44
"version": "1.2.0",
55
"scripts": {
6+
"biome:format": "biome format --write src/",
7+
"biome:lint": "biome lint --write src/",
8+
"biome:lint:ci": "biome lint src/",
9+
"build": "next build --turbopack",
610
"clean": "rm -rf .next coverage node_modules tsconfig.tsbuildinfo",
711
"dev": "next dev",
8-
"build": "next build --turbopack",
9-
"start": "next start",
1012
"lint": "next lint",
1113
"prepare": "husky",
1214
"release": "standard-version",
15+
"start": "next start",
16+
"sst:dev": "sst dev",
17+
"sst:deploy": "sst deploy --stage production",
1318
"test": "jest",
14-
"biome:format": "biome format --write src/",
15-
"biome:lint": "biome lint --write src/",
16-
"biome:lint:ci": "biome lint src/",
17-
"typescript:ci": "tsc --noEmit",
1819
"test:ci": "jest --ci --collect-coverage --verbose",
20+
"typescript:ci": "tsc --noEmit",
1921
"up-latest": "pnpm up -i -L"
2022
},
2123
"dependencies": {
@@ -30,6 +32,7 @@
3032
"react-dom": "19.1.0",
3133
"react-icons": "5.5.0",
3234
"react-qrcode-logo": "3.0.0",
35+
"sst": "3.17.4",
3336
"tailwind-merge": "3.2.0"
3437
},
3538
"devDependencies": {

0 commit comments

Comments
 (0)