chore: change to node adapter

This commit is contained in:
草师傅 2025-08-13 19:21:12 +08:00
parent 466dffc754
commit 30b0738af0
Signed by: gb
GPG key ID: 43330A030E2D6478
3 changed files with 17 additions and 8 deletions

View file

@ -13,6 +13,8 @@ import rehypeKatex from "rehype-katex";
import partytown from '@astrojs/partytown'; import partytown from '@astrojs/partytown';
import {remarkModifiedTime} from "./src/plugins/remark/modified-time.mjs"; import {remarkModifiedTime} from "./src/plugins/remark/modified-time.mjs";
import node from '@astrojs/node';
export default defineConfig({ export default defineConfig({
site: 'https://terminal-blog.example.com', site: 'https://terminal-blog.example.com',
base: '/', base: '/',
@ -42,5 +44,7 @@ export default defineConfig({
integrations: [sitemap(), mdx(), partytown()], integrations: [sitemap(), mdx(), partytown()],
adapter: cloudflare() adapter: node({
mode: 'standalone'
})
}); });

View file

@ -13,7 +13,7 @@
"dependencies": { "dependencies": {
"@astrojs/cloudflare": "^12.5.4", "@astrojs/cloudflare": "^12.5.4",
"@astrojs/mdx": "^4.2.6", "@astrojs/mdx": "^4.2.6",
"@astrojs/node": "^9.2.2", "@astrojs/node": "^9.4.0",
"@astrojs/partytown": "^2.1.4", "@astrojs/partytown": "^2.1.4",
"@astrojs/rss": "^4.0.1", "@astrojs/rss": "^4.0.1",
"@astrojs/sitemap": "^3.3.1", "@astrojs/sitemap": "^3.3.1",

17
pnpm-lock.yaml generated
View file

@ -15,8 +15,8 @@ importers:
specifier: ^4.2.6 specifier: ^4.2.6
version: 4.2.6(astro@5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1)) version: 4.2.6(astro@5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1))
'@astrojs/node': '@astrojs/node':
specifier: ^9.2.2 specifier: ^9.4.0
version: 9.2.2(astro@5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1)) version: 9.4.0(astro@5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1))
'@astrojs/partytown': '@astrojs/partytown':
specifier: ^2.1.4 specifier: ^2.1.4
version: 2.1.4 version: 2.1.4
@ -92,6 +92,9 @@ packages:
'@astrojs/internal-helpers@0.6.1': '@astrojs/internal-helpers@0.6.1':
resolution: {integrity: sha512-l5Pqf6uZu31aG+3Lv8nl/3s4DbUzdlxTWDof4pEpto6GUJNhhCbelVi9dEyurOVyqaelwmS9oSyOWOENSfgo9A==} resolution: {integrity: sha512-l5Pqf6uZu31aG+3Lv8nl/3s4DbUzdlxTWDof4pEpto6GUJNhhCbelVi9dEyurOVyqaelwmS9oSyOWOENSfgo9A==}
'@astrojs/internal-helpers@0.7.1':
resolution: {integrity: sha512-7dwEVigz9vUWDw3nRwLQ/yH/xYovlUA0ZD86xoeKEBmkz9O6iELG1yri67PgAPW6VLL/xInA4t7H0CK6VmtkKQ==}
'@astrojs/markdown-remark@6.3.1': '@astrojs/markdown-remark@6.3.1':
resolution: {integrity: sha512-c5F5gGrkczUaTVgmMW9g1YMJGzOtRvjjhw6IfGuxarM6ct09MpwysP10US729dy07gg8y+ofVifezvP3BNsWZg==} resolution: {integrity: sha512-c5F5gGrkczUaTVgmMW9g1YMJGzOtRvjjhw6IfGuxarM6ct09MpwysP10US729dy07gg8y+ofVifezvP3BNsWZg==}
@ -101,8 +104,8 @@ packages:
peerDependencies: peerDependencies:
astro: ^5.0.0 astro: ^5.0.0
'@astrojs/node@9.2.2': '@astrojs/node@9.4.0':
resolution: {integrity: sha512-PtLPuuojmcl9O3CEvXqL/D+wB4x5DlbrGOvP0MeTAh/VfKFprYAzgw1+45xsnTO+QvPWb26l1cT+ZQvvohmvMw==} resolution: {integrity: sha512-Gxs0iVUvOmQmK+H1DBoabcgvdSDg277SwbujRv2cUBlnpcOTJQDFRhRvyJ7G+Zkd06/jhRphsTTmmrBY0PqI4g==}
peerDependencies: peerDependencies:
astro: ^5.3.0 astro: ^5.3.0
@ -3528,6 +3531,8 @@ snapshots:
'@astrojs/internal-helpers@0.6.1': {} '@astrojs/internal-helpers@0.6.1': {}
'@astrojs/internal-helpers@0.7.1': {}
'@astrojs/markdown-remark@6.3.1': '@astrojs/markdown-remark@6.3.1':
dependencies: dependencies:
'@astrojs/internal-helpers': 0.6.1 '@astrojs/internal-helpers': 0.6.1
@ -3573,9 +3578,9 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@astrojs/node@9.2.2(astro@5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1))': '@astrojs/node@9.4.0(astro@5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1))':
dependencies: dependencies:
'@astrojs/internal-helpers': 0.6.1 '@astrojs/internal-helpers': 0.7.1
astro: 5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1) astro: 5.7.10(@azure/identity@4.9.1)(@types/node@22.15.3)(rollup@4.40.1)(typescript@5.8.3)(yaml@2.7.1)
send: 1.2.0 send: 1.2.0
server-destroy: 1.0.1 server-destroy: 1.0.1