diff --git a/astro.config.mjs b/astro.config.mjs index d9390d4..7959354 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -13,8 +13,6 @@ import rehypeKatex from "rehype-katex"; import partytown from '@astrojs/partytown'; import {remarkModifiedTime} from "./src/plugins/remark/modified-time.mjs"; -import node from '@astrojs/node'; - export default defineConfig({ site: 'https://terminal-blog.example.com', base: '/', @@ -44,7 +42,5 @@ export default defineConfig({ integrations: [sitemap(), mdx(), partytown()], - adapter: node({ - mode: 'standalone' - }) + adapter: cloudflare() }); \ No newline at end of file diff --git a/package.json b/package.json index b70cf8f..8c0394d 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/cloudflare": "^12.5.4", "@astrojs/mdx": "^4.2.6", - "@astrojs/node": "^9.4.0", + "@astrojs/node": "^9.2.2", "@astrojs/partytown": "^2.1.4", "@astrojs/rss": "^4.0.1", "@astrojs/sitemap": "^3.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6a5413e..49939d2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: 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)) '@astrojs/node': - specifier: ^9.4.0 - 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)) + specifier: ^9.2.2 + 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)) '@astrojs/partytown': specifier: ^2.1.4 version: 2.1.4 @@ -92,9 +92,6 @@ packages: '@astrojs/internal-helpers@0.6.1': 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': resolution: {integrity: sha512-c5F5gGrkczUaTVgmMW9g1YMJGzOtRvjjhw6IfGuxarM6ct09MpwysP10US729dy07gg8y+ofVifezvP3BNsWZg==} @@ -104,8 +101,8 @@ packages: peerDependencies: astro: ^5.0.0 - '@astrojs/node@9.4.0': - resolution: {integrity: sha512-Gxs0iVUvOmQmK+H1DBoabcgvdSDg277SwbujRv2cUBlnpcOTJQDFRhRvyJ7G+Zkd06/jhRphsTTmmrBY0PqI4g==} + '@astrojs/node@9.2.2': + resolution: {integrity: sha512-PtLPuuojmcl9O3CEvXqL/D+wB4x5DlbrGOvP0MeTAh/VfKFprYAzgw1+45xsnTO+QvPWb26l1cT+ZQvvohmvMw==} peerDependencies: astro: ^5.3.0 @@ -3531,8 +3528,6 @@ snapshots: '@astrojs/internal-helpers@0.6.1': {} - '@astrojs/internal-helpers@0.7.1': {} - '@astrojs/markdown-remark@6.3.1': dependencies: '@astrojs/internal-helpers': 0.6.1 @@ -3578,9 +3573,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@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))': + '@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))': dependencies: - '@astrojs/internal-helpers': 0.7.1 + '@astrojs/internal-helpers': 0.6.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 server-destroy: 1.0.1 diff --git a/src/components/Statistics.astro b/src/components/Statistics.astro index 468949e..bc9444e 100644 --- a/src/components/Statistics.astro +++ b/src/components/Statistics.astro @@ -14,7 +14,7 @@ const goatCounterConfig = siteConfig.siteAnalytics.goatcounter > )} -{ statisticsType === 'goatcounter' && ( +{statisticsEnabled && statisticsType === 'goatcounter' && ( <> {noscript ? ( Analytics diff --git a/src/content/posts/terminal-setup/cover.jpg b/src/content/posts/terminal-setup/cover.jpg deleted file mode 100644 index 2facbc1..0000000 Binary files a/src/content/posts/terminal-setup/cover.jpg and /dev/null differ