Skip to content

Commit deb6267

Browse files
committed
Fix deployment workflows to build and deploy Vite output
- Update dev.yaml and prod.yaml to run `npm run build` and deploy dist/ - Add tsconfig.json for TypeScript project references - Add generate-legacy.ts stub script - Remove vite-react-ssg (incompatible with React 19) - Add *.tsbuildinfo and .runtime/ to gitignore
1 parent 3ec23bf commit deb6267

7 files changed

Lines changed: 173 additions & 1196 deletions

File tree

.github/workflows/dev.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ jobs:
2828
aws-region: us-east-1
2929

3030
- run: npm ci
31-
- name: Generate service worker
32-
run: npm run build:serviceworker
31+
- name: Build
32+
run: npm run build
3333

3434
- name: Upload to S3
3535
run: |
3636
aws s3 sync \
37-
. \
37+
dist/ \
3838
s3://$S3_BUCKET/ \
39-
--delete \
40-
--exclude ".*" \
41-
--exclude "README.md"
39+
--delete
4240
4341
- name: Set no-cache on the service worker
4442
run: |

.github/workflows/prod.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ jobs:
2828
aws-region: us-east-1
2929

3030
- run: npm ci
31-
- name: Generate service worker
32-
run: npm run build:serviceworker
31+
- name: Build
32+
run: npm run build
3333

3434
- name: Upload to S3
3535
run: |
3636
aws s3 sync \
37-
. \
37+
dist/ \
3838
s3://$S3_BUCKET/ \
39-
--delete \
40-
--exclude ".*" \
41-
--exclude "README.md"
39+
--delete
4240
4341
- name: Set no-cache on the service worker
4442
run: |

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ node_modules
22
.env
33
dist
44
.vite-tmp
5+
*.tsbuildinfo
6+
.runtime/

0 commit comments

Comments
 (0)