Skip to content

Commit 53f4ea3

Browse files
migrate to workers
1 parent 7e8b1ae commit 53f4ea3

File tree

11 files changed

+7488
-11677
lines changed

11 files changed

+7488
-11677
lines changed

.github/scripts/mdx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @ts-check
22

3-
import { mkdirSync, readFileSync, readdirSync, writeFileSync } from 'node:fs';
3+
import { mkdirSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
44
import { mdxToMarkdown } from 'mdast-util-mdx';
55
import { toMarkdown } from 'mdast-util-to-markdown';
66

.github/workflows/format.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: write
1616

1717
steps:
18-
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
18+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
1919
id: app-token
2020
with:
2121
app-id: ${{ vars.BOT_APPID }}
@@ -42,7 +42,7 @@ jobs:
4242
run: pnpm run format
4343

4444
- name: Commit changes
45-
uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5
45+
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6
4646
with:
4747
commit_message: "[ci] lint"
4848
branch: ${{ github.head_ref }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.19.2
1+
22.16.0

astro.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { builtinModules } from 'node:module';
2-
// @ts-check
32
import { dirname, resolve } from 'node:path';
43
import { fileURLToPath } from 'node:url';
54
import cloudflare from '@astrojs/cloudflare';
@@ -68,6 +67,9 @@ export default defineConfig({
6867
}),
6968
],
7069
vite: {
70+
build: {
71+
minify: false,
72+
},
7173
resolve: {
7274
alias: {
7375
'~': resolve(dirname(fileURLToPath(import.meta.url)), './src'),
@@ -80,5 +82,8 @@ export default defineConfig({
8082
output: 'server',
8183
adapter: cloudflare({
8284
imageService: 'passthrough',
85+
platformProxy: {
86+
enabled: true,
87+
},
8388
}),
8489
});

biome.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
},
99
"files": {
1010
"ignoreUnknown": true,
11-
"ignore": [".prettierrc.mjs", ".prettierignore", "*.astro", "examples/shadcn-ui/*"]
11+
"includes": [
12+
"**",
13+
"!**/.prettierrc.mjs",
14+
"!**/.prettierignore",
15+
"!**/*.astro",
16+
"!**/examples/shadcn-ui/**/*"
17+
]
1218
},
1319
"formatter": {
1420
"lineWidth": 100
@@ -24,11 +30,17 @@
2430
"indentStyle": "space"
2531
}
2632
},
27-
"organizeImports": {
28-
"enabled": true
33+
"assist": {
34+
"actions": {
35+
"source": {
36+
"organizeImports": "on"
37+
}
38+
}
2939
},
3040
"linter": {
3141
"enabled": true,
32-
"rules": { "recommended": true }
42+
"rules": {
43+
"recommended": true
44+
}
3345
}
3446
}

0 commit comments

Comments
 (0)