Skip to content

Commit 920113d

Browse files
committed
feat: bump astro v3
1 parent 0282253 commit 920113d

File tree

4 files changed

+3892
-1681
lines changed

4 files changed

+3892
-1681
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18.17.1
1719
- uses: pnpm/action-setup@v2
1820

1921
- run: pnpm install --frozen-lockfile

astro.config.mjs

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@ import unocss from 'unocss/astro'
33
import solidJs from '@astrojs/solid-js'
44

55
import node from '@astrojs/node'
6-
import vercel from '@astrojs/vercel/edge'
7-
import netlify from '@astrojs/netlify/edge-functions'
6+
import vercel from '@astrojs/vercel/serverless'
7+
import netlify from '@astrojs/netlify/functions'
88

99
import { META } from './src/config'
1010

1111
const envAdapter = () => {
1212
if (process.env.OUTPUT === 'vercel') {
13-
return vercel()
13+
return vercel({
14+
edgeMiddleware: true,
15+
})
1416
} else if (process.env.OUTPUT === 'netlify') {
15-
return netlify()
17+
return netlify({
18+
edgeMiddleware: true,
19+
})
1620
} else {
1721
return node({
1822
mode: 'standalone',

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
"@astrolib/seo": "^0.6.0",
2525
"@nanostores/solid": "^0.4.2",
2626
"@unocss/reset": "^0.55.3",
27-
"astro": "^2.10.14",
27+
"astro": "^3.0.2",
2828
"dayjs": "^1.11.9",
2929
"nanostores": "^0.9.3",
3030
"solid-js": "^1.7.11"
3131
},
3232
"devDependencies": {
33-
"@astrojs/netlify": "^2.6.0",
34-
"@astrojs/node": "^5.3.6",
35-
"@astrojs/solid-js": "^2.2.1",
36-
"@astrojs/vercel": "^3.8.2",
37-
"@iconify/json": "^2.2.107",
33+
"@astrojs/netlify": "^3.0.0",
34+
"@astrojs/node": "^6.0.0",
35+
"@astrojs/solid-js": "^3.0.0",
36+
"@astrojs/vercel": "^4.0.0",
37+
"@iconify/json": "^2.2.108",
3838
"@ntnyq/prettier-config": "^1.12.4",
3939
"@types/fs-extra": "^11.0.1",
4040
"@types/node": "20.5.7",
@@ -43,7 +43,7 @@
4343
"nano-staged": "^0.8.0",
4444
"npm-run-all": "^4.1.5",
4545
"pnpm": "^8.7.0",
46-
"prettier": "^3.0.2",
46+
"prettier": "^3.0.3",
4747
"typescript": "^5.2.2",
4848
"unocss": "^0.55.3"
4949
},

0 commit comments

Comments
 (0)