Skip to content

Commit 09a1c22

Browse files
author
LearningCoding101
committed
wow
1 parent b72533e commit 09a1c22

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy on push to main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
name: Run deploy script
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run deploy
27+
run: npm run deploy

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ mcp.json
2828
dev-dist
2929
sw.js
3030
workbox-*.js
31+
.vscode/mcp.json

vite.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export default defineConfig({
3131
],
3232
},
3333
workbox: {
34+
// Increase the default maximum size for assets that will be precached by
35+
// Workbox. The default is 2 MiB which caused the build error for a
36+
// ~2.52 MB image. Set to 5 MiB to allow larger assets to be precached.
37+
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024,
3438
globPatterns: ["**/*.{js,css,html,ico,png,svg,woff,woff2}"],
3539
runtimeCaching: [
3640
{

0 commit comments

Comments
 (0)