Skip to content

Commit

Permalink
feat: bump astro v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Aug 30, 2023
1 parent 0282253 commit 920113d
Show file tree
Hide file tree
Showing 4 changed files with 3,892 additions and 1,681 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.17.1
- uses: pnpm/action-setup@v2

- run: pnpm install --frozen-lockfile
Expand Down
12 changes: 8 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@ import unocss from 'unocss/astro'
import solidJs from '@astrojs/solid-js'

import node from '@astrojs/node'
import vercel from '@astrojs/vercel/edge'
import netlify from '@astrojs/netlify/edge-functions'
import vercel from '@astrojs/vercel/serverless'
import netlify from '@astrojs/netlify/functions'

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

const envAdapter = () => {
if (process.env.OUTPUT === 'vercel') {
return vercel()
return vercel({
edgeMiddleware: true,
})
} else if (process.env.OUTPUT === 'netlify') {
return netlify()
return netlify({
edgeMiddleware: true,
})
} else {
return node({
mode: 'standalone',
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
"@astrolib/seo": "^0.6.0",
"@nanostores/solid": "^0.4.2",
"@unocss/reset": "^0.55.3",
"astro": "^2.10.14",
"astro": "^3.0.2",
"dayjs": "^1.11.9",
"nanostores": "^0.9.3",
"solid-js": "^1.7.11"
},
"devDependencies": {
"@astrojs/netlify": "^2.6.0",
"@astrojs/node": "^5.3.6",
"@astrojs/solid-js": "^2.2.1",
"@astrojs/vercel": "^3.8.2",
"@iconify/json": "^2.2.107",
"@astrojs/netlify": "^3.0.0",
"@astrojs/node": "^6.0.0",
"@astrojs/solid-js": "^3.0.0",
"@astrojs/vercel": "^4.0.0",
"@iconify/json": "^2.2.108",
"@ntnyq/prettier-config": "^1.12.4",
"@types/fs-extra": "^11.0.1",
"@types/node": "20.5.7",
Expand All @@ -43,7 +43,7 @@
"nano-staged": "^0.8.0",
"npm-run-all": "^4.1.5",
"pnpm": "^8.7.0",
"prettier": "^3.0.2",
"prettier": "^3.0.3",
"typescript": "^5.2.2",
"unocss": "^0.55.3"
},
Expand Down

1 comment on commit 920113d

@vercel
Copy link

@vercel vercel bot commented on 920113d Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.